Commit Graph
408 Commits
Author SHA1 Message Date
SUZUKI Sosukeandfisker Cheung 813df18df6 Moves @types/prettier to this repository (#14212)
* Rename `types` to `thirs-party-types`

* Copy `index.d.ts` from `@types/prettier`

* Make public APIs async

* Add missing `formatAST`

* Fix `CustomParser`

* Fix `Parser.parse` signature

* Add comment

* Add `standalonw.d.ts`

* first implement

* Fix path

* Add missing parser `.d.ts`

* Fix

* Fix path

* Introduce valid tests

* Add unit tests for dts files

* Add unit tests

* Simplify unit testing

* Tweaks structures

* Revert needless change

* Fix types path

* Introduce `ts-expect`

* Fix doc utils api

* Add AstPath API

* Fix API

* Fix tests

* Fix changelog

* Move dts

* Update module specifiers

* Remove generate dts config file

* Update build scripts

* Fix type errors

* Refactor with namespace imports

* Update comments

* Fix build script

* Improve build script

* `typing` -> `types`

* Clean up

* Minor tweak

* Minor tweak

* Modify `exports` field

* Fix paths in builder

* Refactor

* Refactor

* Address review

* Update changelog

* Address reviews

* Remove `since` from tests

* Improve utils type def

* Mark deprecated methods

* Address review

* Move docs types

* Address review

* Update c8 config

* Minor tweak

---------

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-02-23 22:15:18 +09:00
fisker Cheung 0d6c8f681d Update typescript-eslint to v5.52 (#14358) 2023-02-19 11:15:06 +08:00
fisker Cheung 5ea9a8f81f Reduce bundle size (#14370) 2023-02-16 15:02:41 +08:00
fisker Cheung 3102686278 Update build script (#14362) 2023-02-15 12:35:14 +08:00
renovate[bot]andfisker 04ac860123 Update typescript-eslint to v5.51.0 (#14346)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2023-02-12 20:09:37 +08:00
fisker Cheung bd402ab67e Reduce size of meriyah parser (#14278) 2023-02-03 11:10:00 +08:00
renovate[bot]andfisker Cheung 256e2c78c1 Update dependency esbuild to v0.16.4 (#13972)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-12-12 12:37:25 +08:00
fisker Cheung 3e49250841 Update flow-parser to v0.194.0 (#13928) 2022-12-05 10:11:01 +08:00
fisker Cheung b035922ff4 Fix build script 2022-11-18 14:36:43 +08:00
fisker Cheung fb62a9fc31 Build: improve readability of the transform script (#13815) 2022-11-15 18:26:06 +08:00
renovate[bot]andfisker 824aff897b Update typescript-eslint to v5.42.0 (#13806)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2022-11-06 21:46:46 +08:00
fisker Cheung 9eafbf6854 Enable unicorn/prefer-string-replace-all rule (#13788) 2022-11-06 19:55:24 +08:00
fisker Cheung 730e5ec2b1 Fix esbuildPluginEvaluate (#13766) 2022-10-30 17:08:19 +08:00
fisker Cheung a3dfbf70f7 Build: more powerful esbuild evaluate plugin (#13724) 2022-10-30 11:14:51 +08:00
fisker Cheung 75785c5acc Minor tweak to bundled dependencies license (#13748) 2022-10-30 11:06:57 +08:00
fisker Cheung 4f13d715c7 Reduce size of postcss plugin (#13745) 2022-10-29 16:28:20 +08:00
fisker Cheung e9fc7f78b4 Build: improve use of define option (#13728) 2022-10-27 09:29:22 +08:00
fisker Cheung 4b3100b43a Reduce size of typescript plugin (#13734) 2022-10-26 20:34:47 +08:00
fisker Cheung 6623d7c736 Reduce size of typescript plugin (#13727) 2022-10-26 10:02:23 +08:00
Sosuke Suzuki d09bc86c9f Enable prettier-internal-rules/prefer-fs-promises-submodule for all files (#13722)
* Enable `prefer-fs-promises-submodule` for all files

* Fix problems
2022-10-23 22:23:44 +09:00
fisker Cheung 76068c4f8c Reduce size of typescript plugin (#13697) 2022-10-23 11:19:57 +08:00
fisker Cheung 36460d5fd6 Reduce size of glimmer plugin (#13698) 2022-10-22 23:35:19 +08:00
fisker Cheung d003c15055 Build: fix outdent entry (#13684) 2022-10-20 08:26:35 +08:00
fisker Cheung e574e6050a Reduce size of typescript plugin (#13673) 2022-10-17 22:47:19 +08:00
renovate[bot]andfisker Cheung 6bcbe5ea2f Update dependency jest-docblock to v29.2.0 (#13665)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-10-16 15:31:36 +08:00
fisker Cheung 791bcb4e72 Update typescript plugin build script (#13637) 2022-10-16 13:36:22 +08:00
fisker Cheung e412b27db9 Fix package.json exports field (#13639) 2022-10-16 12:47:33 +08:00
fisker Cheung 2d0041cad5 Reduce size of index.mjs (#13636) 2022-10-16 12:13:19 +08:00
fisker Cheung 81ad8e9a50 Update yaml-unist-parser to v2 (#13638) 2022-10-16 11:53:24 +08:00
fisker Cheung df28f23429 Fix bundled index.cjs (#13627) 2022-10-13 17:05:20 +08:00
fisker Cheung 3ca842d81c Update @angular/compiler to v14 (#13609) 2022-10-11 11:26:30 +08:00
fisker Cheung 885c3c89ca Reduce size of typescript plugin (#13604) 2022-10-10 20:28:54 +08:00
renovate[bot]andfisker Cheung f4f36b94ec Update dependency angular-estree-parser to v3 (#13603)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2022-10-10 10:01:13 +08:00
fisker CheungandSosuke Suzuki 31a796d32c Restructure package files, add exports (#13530)
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
2022-10-06 15:20:19 +08:00
fisker Cheung 572452acf8 Reduce size of standalone.js (#13543) 2022-10-04 18:09:24 +08:00
fisker Cheung 3f21a973e1 Fix CJS proxy (#13535) 2022-09-27 11:13:44 +08:00
fisker Cheung bb2104dd7c Support optional chaining in .at() transform (#13528) 2022-09-26 22:54:17 +08:00
fisker Cheung 81a4d455f3 Build: Refactor build script (#13513) 2022-09-25 11:50:59 +08:00
fisker Cheung 08620b41eb Use ESM version of parsers in bundles (#13505) 2022-09-23 19:26:13 +08:00
fisker Cheung 1569db783b Rename bin-prettier.js bundle to bin-prettier.cjs (#13511) 2022-09-23 19:25:16 +08:00
fisker Cheung 5465517f4b Bundle third-party.js in ESM (#13509) 2022-09-23 19:24:54 +08:00
fisker Cheung 16c9d8bafe Bundle files in ESM (#13266) 2022-09-23 09:46:18 +08:00
fisker Cheung 77ac062120 Fix 2022-09-22 20:20:16 +08:00
fisker Cheung 7ccc4f55f2 Merge branch 'main' into next
# Conflicts:
#	package.json
#	scripts/build/modify-typescript-module.mjs
#	yarn.lock
2022-09-22 19:17:55 +08:00
fisker Cheung 8764a3d378 Improve typescript bundle speed (#13433) 2022-09-22 19:11:19 +08:00
fisker Cheung 824690fcc7 Allow parsers initialize asynchronously (#13449) 2022-09-22 15:13:37 +08:00
fisker Cheung 9bacc75772 Use .at() and Object.hasOwn() (#13482) 2022-09-18 17:50:14 +08:00
Sosuke Suzuki 8cfdcaa6b2 Use Object.hasOwn instead of Reflect.has in build script (#13495)
Use `Object.hasOwn` instead of `Reflect.has`
2022-09-18 18:32:17 +09:00
fisker Cheung 6082e3ec9e Remove outdated hack for flow parser (#13442) 2022-09-08 09:43:47 +08:00
Sosuke Suzuki e3ef1e4566 Drop Node.js 14 for development build (#13439)
* Drop Node.js 16 for development

* Fix engine

* Address review
2022-09-08 01:03:45 +09:00