8000 Build: Add `exports` to package.json, export slim & esm builds by mgol · Pull Request #5255 · jquery/jquery · GitHub
[go: up one dir, main page]

Skip to content

Build: Add exports to package.json, export slim & esm builds #5255

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 31 commits into from
Jul 10, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
b3f57cb
Build: Introduce the `--esm` `grunt custom` build option
mgol May 16, 2023
516e44f
Build: Define the `exports` field, declare `src/*.js` files as ESM
mgol May 16, 2023
2094ccc
Build: Rename the map file extension from `.min.map` to `.min.js.map`
mgol May 16, 2023
265ca64
Build: Add module versions of node_smoke_tests
mgol May 18, 2023
b3c1364
Build: Tweak the dist ESLint config & the list of ignored files
mgol May 18, 2023
69e7c86
Build: Run ESM + slim smoke tests in CI
mgol May 18, 2023
7d193aa
Build: Add more details to the package README
mgol May 22, 2023
314af4d
Release: Add *.mjs files to release artifacts
mgol May 22, 2023
715594f
Build: Provide only a single export per entry point for Node.js
mgol May 22, 2023
74fb5b7
Build: Add more thorought tests for slim/esm combinations
mgol May 22, 2023
05b529b
Build: Rename nodeV14OrNewer to nodeV16OrNewer
mgol May 22, 2023
56730fa
Build: Run all node smoke tests in all Node.js >=16
mgol May 22, 2023
d37ede3
Tests: global -> globalThis
mgol May 22, 2023
2ad8c2c
Build: Refactor exports, dist & dist-module, release script
mgol Jun 12, 2023
4c9895f
Core: Code style
mgol Jun 22, 2023
0809162
Build: Prioritize ESM in the README of the published package
mgol Jun 23, 2023
6ce66e5
Build: Remove the remove_map_comment task
mgol Jun 23, 2023
baeb9c5
Release: Simplify generateArtifacts
mgol Jun 23, 2023
ce8da51
Build: Declare `"type": "module"` globally except for the `build` folder
mgol Jun 23, 2023
9e44a88
Build: Update an outdated comment about Node.js support
mgol Jun 26, 2023
215c86d
Build: Fix - make some CommonJS files evaluated as CommonJS again
mgol Jun 26, 2023
6d5f6fb
Build: Hotfix + small code style tweaks
mgol Jun 26, 2023
422ac40
Build: Remove remnants of individual AMD modules.
mgol Jun 27, 2023
7391968
Build: Export named jQuery & $ for the browser ESM build as well
mgol Jul 5, 2023
7334450
Build: Rename jquery.module.slim.js to jquery.slim..module.js
mgol Jul 6, 2023
34be31b
Build: Refactor test:node_smoke_tests in package.json
mgol Jul 6, 2023
ce7f2a7
Build: Don't run terser & dist tasks in the default one
mgol Jul 6, 2023
cda9a28
Build: Rename mode to moduleType in node_smoke_tests
mgol Jul 6, 2023
2f17d03
Build: Search for .js, .cjs & .mjs files in node_smoke_tests
mgol Jul 6, 2023
7a978e6
Build: Fix ESLint patterns for module files
mgol Jul 6, 2023
53fdc43
Build: Fix the minify source map file path
mgol Jul 10, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Build: Fix - make some CommonJS files evaluated as CommonJS again
  • Loading branch information
mgol committed Jul 10, 2023
commit 215c86d03b8fecca8be0d3460bd54442f71ea1e5
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ npm-debug.log*
# Ignore everything in `dist` folder except for the ESLint config
/dist/*
!/dist/.eslintrc.json
!/dist/package.json

# Ignore everything in the `dist-module` folder except for the ESLint config,
# package.json & Node module wrapper files
Expand Down
4 changes: 2 additions & 2 deletions build/tasks/promises_aplus_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = grunt => {
grunt.registerTask( "promises_aplus_tests:deferred", function() {
spawnTest( this.async(),
"\"" + __dirname + "/../../node_modules/.bin/promises-aplus-tests\"" +
" test/promises_aplus_adapters/deferred.js" +
" test/promises_aplus_adapters/deferred.cjs" +
" --reporter dot" +
" --timeout " + timeout
);
Expand All @@ -19,7 +19,7 @@ module.exports = grunt => {
grunt.registerTask( "promises_aplus_tests:when", function() {
spawnTest( this.async(),
"\"" + __dirname + "/../../node_modules/.bin/promises-aplus-tests\"" +
" test/promises_aplus_adapters/when.js" +
" test/promises_aplus_adapters/when.cjs" +
" --reporter dot" +
" --timeout " + timeout
);
Expand Down
3 changes: 3 additions & 0 deletions dist/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "commonjs"
}
0