-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrating to ECMAScript modules (#894)
* ESM configs * binary operators printers to ESM * nodes to ESM * common utilities to ESM * comments to ESM * main files to ESM * test configuration to ESM * format tests to new config * unit tests to ESM * prettier 2.8.8 is incompatible with ESM so only running standalone tests * cleanup: dir-to-object doesn't work with ESM * updating dependencies compatible with ESM * fixing lint * testing prettier-version on cjs and esm * adding conditional exports for environments using cjs or prettier v2 * using cache strategy to load solc and improving testing times * updating `parse` signature for standalone tests * Include the whole dist/ directory when publishing * since we are publishing the whole `dist` folder, we make sure to clean it before building --------- Co-authored-by: Franco Victorio <[email protected]>
- Loading branch information
Showing
183 changed files
with
1,086 additions
and
1,334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,10 +54,8 @@ jobs: | |
run: npm run build | ||
- name: Downgrade Prettier to V2 | ||
run: npm install [email protected] | ||
- name: Run tests | ||
run: npm run test:all | ||
- name: Run standalone tests | ||
run: npm run test:standalone | ||
run: npm run test:standalone tests/format tests/unit/prettier-version | ||
|
||
test_linux: | ||
name: Test on Linux with Node ${{ matrix.node }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
# -*- mode: gitignore; -*- | ||
.github/ | ||
tests/ | ||
scripts/ | ||
assets/ | ||
*.md/ | ||
!README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.