Commit Graph
637 Commits
Author SHA1 Message Date
fisker Cheung d039a98a08 Remove useless file 2022-03-07 13:53:59 +08:00
dependabot[bot] 3f37b7f341 Build(deps): Bump string-width from 5.1.0 to 5.1.2 in /scripts/release (#12405) 2022-03-07 03:57:43 +00:00
fisker Cheung b11044e58c Merge branch 'main' into next
# Conflicts:
#	scripts/vendors/vendor-meta.json
#	src/cli/options/get-options-for-file.js
#	src/cli/options/parse-cli-arguments.js
#	src/language-js/print/class.js
#	src/language-js/print/type-annotation.js
#	src/language-js/printer-estree.js
#	src/main/options-normalizer.js
#	vendors/tempy.js
2022-03-07 11:18:46 +08:00
dependabot[bot] fa380feb95 Build(deps): Bump node-fetch from 3.2.0 to 3.2.1 in /scripts/release (#12407)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-07 10:55:49 +08:00
fisker Cheung 02c4e642a3 Build: Update mainFields (#12372) 2022-03-06 19:10:49 +08:00
fisker Cheung 9b599ccaad Regenerate vendors (#12386) 2022-03-02 22:00:41 +08:00
fisker Cheung 3bb69beabf Use node: protocol (#12373) 2022-03-02 13:44:00 +08:00
fisker Cheung 66097cbdf5 Fix build script 2022-02-28 21:12:07 +08:00
fisker Cheung ec2b75dce9 Merge branch 'main' into next
# Conflicts:
#	.github/workflows/validate-vendor-versions.yml
#	package.json
#	scripts/build/bundler.mjs
2022-02-28 21:06:23 +08:00
fisker Cheung a67a5c2f94 Remove vendors/ (#12377) 2022-02-28 19:48:14 +08:00
fisker Cheung e949a54e59 Build: Add platform: "node" (#12375) 2022-02-28 18:38:33 +08:00
fisker Cheung af103ae766 Migrate src/{document,utils}/** to ES Modules (#12345) 2022-02-28 11:12:37 +08:00
fisker Cheung 05aa5e16d6 Migrate src/{main,common,config}/** to ES Modules (#12344) 2022-02-23 20:16:30 +08:00
dependabot[bot] 10a68937d2 Build(deps): Bump execa from 6.0.0 to 6.1.0 in /scripts/release (#12337) 2022-02-23 11:51:04 +00:00
fisker Cheung dceb88bb3b Migrate HTML language to ES Module (#12343) 2022-02-21 16:44:56 +08:00
fisker Cheung 52c9a20e2c Merge branch 'main' into next
# Conflicts:
#	package.json
#	src/cli/index.js
#	tests/config/install-prettier.js
#	tests/format/yaml/block-literal/jsfmt.spec.js
#	tests/integration/__tests__/file-info.js
#	yarn.lock
2022-02-21 16:12:59 +08:00
fisker Cheung 54835025d5 Migrate JS language to ES Module (#12342) 2022-02-21 15:53:02 +08:00
fisker Cheung c5fd728273 Migrate Handlebars language to ES Module (#12340) 2022-02-21 14:46:56 +08:00
fisker Cheung 1caec5de69 Migrate CSS language to ES Module (#12341) 2022-02-21 14:22:51 +08:00
fisker Cheung b05812737d Migrate YAML language to ES Module (#12339) 2022-02-21 13:49:08 +08:00
fisker Cheung 0040204e2c Migrate GraphQL language to ES Module (#12321) 2022-02-21 10:25:39 +08:00
fisker Cheung 15781c91d4 Migrate Markdown language to ES Module (#12303) 2022-02-20 23:57:53 +08:00
fisker Cheung 888db50d9f Build: Fix --compare-size (#12323) 2022-02-18 17:12:18 +08:00
fisker Cheung 56791a2624 Migrate src/*.js to ES Module (#12278) 2022-02-17 09:47:35 +08:00
dependabot[bot] b1d8a83a82 Build(deps-dev): Bump jest from 27.5.0 to 27.5.1 in /scripts/release (#12296) 2022-02-16 02:07:29 +00:00
dependabot[bot] 40fde1ff86 Build(deps-dev): Bump @jest/globals in /scripts/release (#12297)
Bumps [@jest/globals](https://github.com/facebook/jest/tree/HEAD/packages/jest-globals) from 27.5.0 to 27.5.1.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/commits/v27.5.1/packages/jest-globals)

---
updated-dependencies:
- dependency-name: "@jest/globals"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-16 08:35:49 +08:00
dependabot[bot]andsosukesuzuki e11ea84efe Build(deps-dev): Bump execa from 6.0.0 to 6.1.0 (#12301)
* Build(deps-dev): Bump execa from 6.0.0 to 6.1.0

Bumps [execa](https://github.com/sindresorhus/execa) from 6.0.0 to 6.1.0.
- [Release notes](https://github.com/sindresorhus/execa/releases)
- [Commits](https://github.com/sindresorhus/execa/compare/v6.0.0...v6.1.0)

---
updated-dependencies:
- dependency-name: execa
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update vendors

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: sosukesuzuki <aosukeke@gmail.com>
2022-02-16 08:33:48 +08:00
Sosuke Suzukiandfisker Cheung 0aff39fd2b Update docs about ./scripts/vendors (#12300)
* Update docs

* Update scripts/vendors/README.md

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-02-14 11:26:29 +09:00
Sosuke Suzuki b14b13d2cf Update tempy to 2.0.0 (#12247)
* Update `tempy`

* require `tempy` directly

* Fix

* Fix

* Vendors

* Remove `vendord.d.tsd`

* Fix path
2022-02-12 18:23:50 +09:00
fisker Cheung be0739ec22 Add type:"module" to package.json (#12272) 2022-02-12 15:39:16 +08:00
Sosuke Suzuki 34fbd099de Update execa to 6.0.0 (#12245)
* Update execa

* Fix

* require `execa` directly

* Run `vendors:bundle`

* Run `vendors:bundle`

* Generate dts with considering defautl export

* Remove `vendors-versions.json`
2022-02-12 12:07:22 +09:00
fisker Cheung dc80e12fd8 Merge branch 'main' into next 2022-02-11 21:11:23 +08:00
fisker Cheung badff2d1d6 Update esm-utils to v3 (#12274) 2022-02-11 18:02:04 +08:00
fisker Cheung 1b6388e9b1 Fix 2022-02-09 10:08:32 +08:00
fisker Cheung f0b63f3dff Merge branch 'main' into next
# Conflicts:
#	CONTRIBUTING.md
#	cspell.json
#	docs/options.md
#	package.json
#	scripts/build/bundler.mjs
#	src/language-css/loc.js
#	src/language-css/parser-postcss.js
#	src/language-css/utils/index.js
#	tests/format/js/arrows-bind/jsfmt.spec.js
#	tests/format/js/async-do-expressions/jsfmt.spec.js
#	tests/format/js/bind-expressions/jsfmt.spec.js
#	tests/format/js/classes/top-level-super/jsfmt.spec.js
#	tests/format/js/comments-pipeline-own-line/jsfmt.spec.js
#	tests/format/js/decorator-comments/jsfmt.spec.js
#	tests/format/js/decorators-export/jsfmt.spec.js
#	tests/format/js/decorators/jsfmt.spec.js
#	tests/format/js/do/jsfmt.spec.js
#	tests/format/js/export-default/escaped/jsfmt.spec.js
#	tests/format/js/export-extension/jsfmt.spec.js
#	tests/format/js/export-star/jsfmt.spec.js
#	tests/format/js/exports/jsfmt.spec.js
#	tests/format/js/invalid-code/jsfmt.spec.js
#	tests/format/js/logical-assignment/jsfmt.spec.js
#	tests/format/js/multiparser-invalid/jsfmt.spec.js
#	tests/format/js/no-semi-babylon-extensions/jsfmt.spec.js
#	tests/format/js/object-property-comment/jsfmt.spec.js
#	tests/format/js/partial-application/jsfmt.spec.js
#	tests/format/js/pipeline-operator/jsfmt.spec.js
#	tests/format/js/private-in/jsfmt.spec.js
#	tests/format/js/record/jsfmt.spec.js
#	tests/format/js/reserved-word/jsfmt.spec.js
#	tests/format/js/strings/jsfmt.spec.js
#	tests/format/js/throw_expressions/jsfmt.spec.js
#	tests/format/js/trailing-whitespace/jsfmt.spec.js
#	tests/format/js/v8_intrinsic/jsfmt.spec.js
#	tests/format/misc/errors/js/literal/jsfmt.spec.js
#	tests/format/misc/errors/js/object/jsfmt.spec.js
#	tests/format/misc/errors/js/variable-declarator/jsfmt.spec.js
#	tests/integration/__tests__/bundle.js
#	tsconfig.json
#	yarn.lock
2022-02-09 09:22:32 +08:00
fisker Cheung ed951b3167 Update test:dist-lint script (#12262) 2022-02-09 08:30:36 +08:00
fisker Cheung b1e59dd70a Save vendor licenses for build script (#12258) 2022-02-08 10:33:09 +08:00
Jed Fox 98f560839c Include vendors/ when installing from GitHub (#12250) 2022-02-06 23:22:44 -05:00
fisker Cheung ac348c1dbb Build: Add --compare-size flag (#12187) 2022-02-07 12:00:43 +08:00
fisker Cheung 717e6d8cb7 Follow up work for flow-parser@0.171.0 (#12252) 2022-02-07 11:24:32 +08:00
dependabot[bot] fa615fa95f Build(deps-dev): Bump jest from 27.4.7 to 27.5.0 in /scripts/release (#12243)
Bumps [jest](https://github.com/facebook/jest) from 27.4.7 to 27.5.0.
- [Release notes](https://github.com/facebook/jest/releases)
- [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/jest/compare/v27.4.7...v27.5.0)

---
updated-dependencies:
- dependency-name: jest
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-07 08:16:30 +08:00
Sosuke Suzuki 6819dc91f6 Add an esbuild plugin to add @ts-nocheck annotation for vendors (#12248)
* Enable prettier

* Add `esbuildPluginTsNocheck`

* Run build

* Update cspell.json
2022-02-06 23:25:29 +09:00
dependabot[bot] 2e03077563 Build(deps-dev): Bump @jest/globals in /scripts/release (#12242) 2022-02-06 08:37:11 +00:00
Sosuke Suzuki 0abd1907bb Bundle Pure ESM Packages into /vendors/*.js as CommonJS (#12217)
* string-width

* Add bundle script

* Update package.json

* mem

* Add version validator

* Throw error

* Change filename

* Add documents

* Generate d.ts

* Fix lint problems

* globby

* Add workflow to validate vendor versions

* Fix eslintignore

* Fix

* Fix spell

* Address review

* process.exitCode = 1

* test validation

* Revert "test validation"

This reverts commit 5a86d5f71212e0e900709238a8cc109716678864.

* Remove exists files

* Fix conflicts

* Clean

* Remove globby
2022-02-06 17:31:50 +09:00
fisker Cheung 4ff9461a29 Improve build script (#12190) 2022-02-05 22:51:17 +08:00
Bogdan Chadkin 76bb0226d5 Replace globby with fast-glob (#12223)
There is already fast-glob used in src/cli/expand-patterns.js
Here I migrate everywhere to it from globby which is a thin wrapper with
a couple of unused here features.

```
du -ck dist
```
17280 kB
17260 kB
2022-02-05 10:24:10 -03:00
fisker Cheung 8886e6310a Build: Add --clean (#12186) 2022-02-02 11:23:51 +09:00
fisker Cheung e3efd11401 Drop color support for standalone build (#12182) 2022-01-28 18:27:27 +08:00
fisker Cheung 08da4e55b0 Build: Remove define on second run (#12183) 2022-01-28 16:31:48 +08:00
fisker Cheung 9691e7bc37 Add acorn parser (#12172) 2022-01-28 15:25:30 +08:00