-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
.js
file extension to all in-project imports (#10994)
* add `.js` file extension to all in-project imports * bundler adjustments * remove postprocessing step * fixup, script to detect build differences * more fixes * changeset * adjust jest file resolution * fix up wrong import in `batchHttpLink` * add AreTheTypesWrong check * minor action changes * fixup * use ascii format for attw * update AreTheTypesWrong, use new `--pack` option * add build comparison action * omit minified comparison output * trigger ci * eslint configuration changes, temp custom eslint version * trigger ci * give workflows distincive names? * revert to latest working CI build * revert changes to workflows * clean up newly merged imports * fix command name * adjust fetch-depth * use runner temp dir * dir tweaks * temp file dir? * fir argument * logging * more detail logging * fix binary logic * remove a bunch of logging again * disable `set` * partially reintroduce * now, to find that last command... * this seems like a good compromise * bump the TS eslint parser to deal with TS 5.1 * apply feedback from review
- Loading branch information
Showing
178 changed files
with
2,536 additions
and
983 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"ignoreRules": [ | ||
"false-esm", | ||
"cjs-resolves-to-esm" | ||
] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@apollo/client': minor | ||
--- | ||
|
||
Add .js file extensions to imports in src and dist/**/*.d.ts |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: AreTheTypesWrong | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- release-* | ||
|
||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
arethetypeswrong: | ||
name: Are the types wrong | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v3 | ||
- name: Setup Node.js 18.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
- name: Install dependencies (with cache) | ||
uses: bahmutov/npm-install@v1 | ||
|
||
- name: Run build | ||
run: npm run build | ||
- name: Run AreTheTypesWrong | ||
id: attw | ||
run: ./node_modules/.bin/attw --format ascii --pack dist > $GITHUB_STEP_SUMMARY |
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 |
---|---|---|
|
@@ -70,3 +70,6 @@ junit.xml | |
reports | ||
|
||
esbuild-why-*.html | ||
|
||
.yalc | ||
yalc.lock |
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 |
---|---|---|
|
@@ -23,6 +23,7 @@ const defaults = { | |
}, | ||
], | ||
}, | ||
resolver: "ts-jest-resolver", | ||
}; | ||
|
||
const ignoreTSFiles = '.ts$'; | ||
|
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
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.