416 Commits

Author SHA1 Message Date
Nicolò Ribaudo
0c65ff7a55
Rename index.mjs to _index.mjs in @babel/runtime (#12855) 2021-02-23 02:08:41 +01:00
Nicolò Ribaudo
c827193d9c v7.13.0 2021-02-22 23:35:18 +01:00
Nicolò Ribaudo
c10825ab05
Use conditional exports in @babel/runtime for CJS/ESM (#12632) 2021-02-21 17:41:10 +01:00
Babel Bot
3af936fc2b
chore: update test262 to f6034ebe9fb92d4d3dea644b9225bdc18b44a7ab (#12826) 2021-02-19 12:03:22 -05:00
Babel Bot
4778e32570
chore: update test262 to 950d09751616a104cb87588e21b3a32563d332d4 (#12782) 2021-02-08 23:29:23 +01:00
Nicolò Ribaudo
4f2d47500f
Don't use require() in ESM files (#12728)
* Update `yarn-plugin-conditions`

* Don't use `require()` in ESM files
2021-02-01 17:09:02 +01:00
Karan Sapolia
b63be942ce
Use native ESM for dev scripts (#12296)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2021-01-30 18:36:21 +01:00
Babel Bot
0138553403
chore: update test262 to 11624af8d0c3bdeb6bbc75a803a75ad146b92508 (#12708) 2021-01-28 19:39:03 -05:00
Babel Bot
dc4bace114
Update test262 (#12671) 2021-01-21 22:04:35 -06:00
Babel Bot
5a193cc14c
Update test262 (#12636) 2021-01-15 02:06:11 +01:00
Babel Bot
37f3aabb66
Update test262 (#12595) 2021-01-08 01:45:09 +01:00
Babel Bot
0d6063f1b9
chore: update test262 to 9ca13b12728b7e0089c7eb03fa2bd17f8abe297f (#12579) 2021-01-03 23:59:04 +01:00
Nicolò Ribaudo
5b5b548036
Publish to npm from GitHub actions (#12526)
* Publish to npm from GitHub actions

* Remove publish-ci from Makefile

This was meant to be used _now_, but I didn't end up using it

* Test

* Revert "Test"

This reverts commit 04095c17db8352710c12849a5b1fa53e853bd6f5.
2020-12-23 00:18:03 +01:00
Nicolò Ribaudo
d9dfd29ce8
Archive @babel/polyfill (#12541)
babel/babel-archive@701775cd9f
2020-12-22 16:52:40 +01:00
Babel Bot
60138bea0d
chore: update test262 to b2e9dff2816cceb5ee84c0c226c50a31d01a7297 (#12539) 2020-12-22 10:39:39 -05:00
Huáng Jùnliàng
814212f0be
Remove babel polyfill from fixture test runner (#12130)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2020-12-22 02:42:39 +01:00
Nicolò Ribaudo
56c7024d5d
Update release-tool and define implicit deps for runtime (#12527) 2020-12-19 01:13:01 +01:00
Nicolò Ribaudo
b9deeb458b
Restore @babel/types support for old TS versions (#12521) 2020-12-17 18:34:23 +01:00
Huáng Jùnliàng
a0c1a9a9e4
Disallow non octal decimal escape before use strict (#12366) 2020-12-15 12:24:32 +01:00
Bogdan Savluk
1290d215f1 Convert @babel/types to TS (#12431)
* babel-types flowts convert
* babel-types code generation updates
* babel-types add more generated types to src (copy logic from scripts/typescript)
* babel-types update generateBuilders to specify exact argument types
* babel-types fix deprecated types generation
* babel-types fixes
* babel-types fix potential bug
* babel-types update generateBuilders, to include proper return types
* babel-types backport types from generated index.d.ts to be included in sources
* babel-types fixes
* babel-types avoid export of builders starting with upper case in ts sources
* babel-types
* babel-types todo updates, small fixes
* babel-types generate helpers
* babel-types remove typescript definitions generation
* babel-types generate files
* babel-types copy d.ts file for deprecated ast node creators into lib folder
* babel-types use t as alias for ast node types namespace
* babel-types update generateBuilders script to use "t" as alias instead of "types"
* babel-types update deprecated builders generation to have more compact file
* babel-types publish the .d.ts file for `@babel/types`
* Publish the .d.ts file for `@babel/types`
* Fix flowcheck
* Prettier
* No need to lint generated .d.ts files (now they are generated by tsc)
* Run prepublish-prepare-dts from prepublish-build
* Fix Babel 8 tests
* Update codecov config
* babel-types more improvements
  - better type for gatherSequenceExpressions
  - mark createUnionTypeAnnotation as deprecated
  - fix createTSUnionType
  - babel-types better type for builder
  - other improvements from PR comments
* babel-types lint fix
* babel-types fix createTSUnionType
* Don't commit .d.ts file in lib, and rename "deprecated"->"uppercase" for builders
* Add back types for TS 3.7
* Update packages/babel-types/package.json
* Cleanup converters types

Co-Authored-By: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
2020-12-10 21:22:10 +01:00
Huáng Jùnliàng
e5b2680756
Move some build steps to gulp (#12127)
* chore: move generate-standalone to gulp tasks

* move build-flow-typings to gulp tasks

* chore: move build-typescript-typings to gulp tasks

* move generate-type-helpers to gulp tasks

* chore: include build-typings and generate-type-helpers in gulp build

* update generate-standalone comments

* address review comments

* chore: revert build-typings refactor

* fix: run build-typings in build-no-bundle
2020-12-10 12:25:16 -05:00
Bogdan Savluk
5067edfdd9
Updates for tsconfig generation (#12420)
* improve makefile to not remove tsconfigs already in git

* update tsconfig generation script to include packages in eslint and codemods folders

* use git clean
2020-12-09 10:27:55 -05:00
Nicolò Ribaudo
aca5edb339
Use Yarn 2.4.0 (#12453)
* Use Yarn 2.4.0

* Update the release plugin

* Check yarn bug on CI

* Patch yarn bug

* Update lockfile
2020-12-08 16:21:27 -05:00
Nicolò Ribaudo
c139d1602b
Prepare codebase for inline Babel 8 breaking changes (#12440) 2020-12-04 21:30:40 +01:00
Nicolò Ribaudo
4b79ab4a90
Migrate from Travis to GH actions (#12412)
* Migrate linting to GH actions

* Migrate windows tests

* Migrate parser tests

* Update .github/workflows/ci.yml

Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>

* Run parser tests in a single job

* Use a single yarn cache

* Remove unused commands from Makefile

* Update .github/workflows/ci.yml

Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>

Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
2020-12-01 08:55:51 +00:00
Huáng Jùnliàng
cff0d7c727
chore: prompt maintainer to quit make watch before publish (#12357)
* chore: prompt maintainer to quit make watch before publish

* move shell prompt to Makefile
2020-11-14 08:23:29 -05:00
Nicolò Ribaudo
3e0fa927c0
Final configuration changes in preparation for TS (#12351) 2020-11-12 16:09:29 +01:00
Nicolò Ribaudo
f80478c06d Prepare repository for gradual flow->ts migration (#12317)
Co-authored-by: Bogdan Savluk <savluk.bogdan@gmail.com>
2020-11-09 23:17:24 +01:00
Nicolò Ribaudo
a9bc9becc5 Use TS3.7 when possible for @babel/type dts (#12317) 2020-11-09 23:17:24 +01:00
Huáng Jùnliàng
8ee4345a61
chore: avoid duplicate coverage data upload (#12187) 2020-10-30 09:28:38 -05:00
Huáng Jùnliàng
1964c961ae
chore: update test262 tests (#12204) 2020-10-16 16:55:10 -04:00
Huáng Jùnliàng
19dc038907
Guard against yarn-issue-1882 (#12188) 2020-10-16 00:15:11 +02:00
Nicolò Ribaudo
9ad0d45b41 Update version check in proposal-class-static-block plugin 2020-10-14 21:48:05 +02:00
Nicolò Ribaudo
02975b9ae1
Use a yarn plugin to manage releases (#12138) 2020-10-14 21:43:53 +02:00
Huáng Jùnliàng
f697e7995d Transform class static block (#12143)
Co-authored-by: Nicolò Ribaudo <nicolo.ribaudo@gmail.com>
Co-authored-by: Brian Ng <bng412@gmail.com>
2020-10-14 21:16:24 +02:00
Nicolò Ribaudo
3fd963fdc8
[ts] Add support for template interpolations in types (#12131)
Co-authored-by: Brian Ng <bng412@gmail.com>
2020-10-14 20:15:42 +02:00
Sosuke Suzuki
7028a14c7f
fix: throw for constructors with type parameters (#12065)
* Throw a syntax error for a constructor with type parameters

* Modify to match error location with TypeScript

* Update typescript parser tests

Update allowlist.txt
2020-09-17 13:03:33 -04:00
Huáng Jùnliàng
2026a42497
Run prepublish build after versioning (#12028)
* test: run prepublish-build after versioning in publish test

* chore: run yarn install when lerna version is invoked
2020-09-03 08:25:44 -04:00
Huáng Jùnliàng
3fad7eab9b
Use Yarn 2 (#11962)
* chore: use yarn 2

* chore: remove redundant yarn locks

* chore: remove publishEslintPkg

* chore: remove redundant make bootstrap

* Update .yarnrc.yml

Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>

* chore: use workspace protocol for eslint packages in the root

Co-Authored-By: merceyz <merceyz@users.noreply.github.com>

* chore: pin caniuse-lite versions

Testcases in packages/babel-preset-env/test/fixtures/debug/browserslists-defaults-not-ie
depends on specific caniuse-lite versions. We pinned the version here
so we don't have to deal with fixture different in e2e-tests
where all deps will be updated and tested.

* chore: resolve yarn install warnings

* chore: update yarn cache path on circle/travis

* chore: add yarn deduplicate plugin

* chore: deduplicate lock files

* chore: move devDependencies to leaf packages

* chore: remove @yarnpkg/plugin-constraints

* chore: remove unused dedupe options

* test: fix unwanted self reference

* chore: remove output-file-sync dependency

* chore: update browserify to 16.5.2

Co-authored-by: Kristoffer K. <merceyz@users.noreply.github.com>
2020-08-25 14:37:30 -04:00
Huáng Jùnliàng
2e2d15fb4c
chore: build babel-polyfill-dist on make watch (#11951) 2020-08-12 10:18:36 -04:00
Huáng Jùnliàng
a3893129ec
chore: enable flowcheck on CI (#11945)
* chore: enable flowcheck on CI

* fix: flow errors
2020-08-10 16:57:29 -04:00
Huáng Jùnliàng
ad60153a98
Update @babel/* deps (#11899)
* chore: remove extra install step for eslint packages

* chore: update babel deps
2020-07-31 20:35:19 -04:00
Huáng Jùnliàng
4c9929ca28
Prepare to publish @babel/eslint-* packages (#11894)
* remove private flag, bump node and babel versions

* disallow submodule imports

* Revert "Do not automatically publish eslint packages (#10722)"

This reverts commit 5ca8acdb38bc7a9a4669ad3249c219531f8f6579.

# Conflicts:
#	Makefile
#	eslint/babel-eslint-parser/package.json
#	eslint/babel-eslint-plugin-development/package.json
#	lerna.json
#	scripts/integration-tests/publish-local.sh

* disable submodule imports for babel-eslint-config-internal

* chore: push back a bit to make tests happy
2020-07-30 13:32:38 -04:00
Huáng Jùnliàng
0e4cf1e6a2
chore: build standalone once in prepublish step (#11777) 2020-07-30 12:54:56 -04:00
Kai Cataldo
4ac9c7afe2
Upgrade to ESLint v7 (#11857)
* Upgrade to ESLint v7

* Upgrade eslint-plugin-import

* Update peer deps

* Remove max-len from ESLint config

* Update tests

* Only test babel-eslint-* packages in Node >=10

* Remove babel-eslint

* Fix linking in dev

* Add comment to Makefile

* Fix e2e tests

* Add --ignore-engines flag when installing in ESLint packages

* fix: convert tt.questionDot to Punctuator

* chore: update lockfile

Co-authored-by: Huáng Jùnliàng <jlhwung@gmail.com>
2020-07-29 19:11:48 -04:00
Brian Ng
8a1d7e41f2 Allow unknown/any in TS catch clause param (#11755) 2020-07-29 16:51:48 -04:00
Huáng Jùnliàng
7eaf37ea3e
chore: use repository HEAD when pulling third party repos (#11837) 2020-07-14 18:14:25 -04:00
Huáng Jùnliàng
ae1e40a678
chore: remove babel-register generated test artifacts (#11776)
* chore: use customized cache path in babel-register path

* chore: remove node_modules cache after tests
2020-07-01 17:07:16 -04:00
Kai Cataldo
75c2300c28
Add @babel/eslint-plugin-development-internal (#11376)
* Add @babel/eslint-plugin-internal

* Add dry-error-messages rule

* Address feedback

* Enable new rule

* fix author field

* Fix errors

* Add readme

* Add example configuration

* Handle directories

* run make bootstrap

* More updates!

* Fix errors

* Update tests

* Fix CI race condition
2020-06-22 19:43:29 -04:00
Huáng Jùnliàng
e498bee10f
replace whitelist by allowlist in parser-tests (#11727) 2020-06-17 15:32:46 -04:00