-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sku v13: Explicitly define entrypoints via
package.json#exports
(#984)
- Loading branch information
Showing
12 changed files
with
71 additions
and
18 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,24 @@ | ||
--- | ||
'sku': major | ||
--- | ||
|
||
Export jest preset path | ||
|
||
**BREAKING CHANGE**: | ||
|
||
The jest preset is now accessible via a relative path rather than pointing to a module. This may affect users that require a jest config for debugging tests in their CLI. See the [testing documentation] for more information. | ||
|
||
**MIGRATION GUIDE**: | ||
|
||
```diff | ||
// jest.config.js | ||
+ const { preset } = require('sku/config/jest'); | ||
|
||
/** @type {import('jest').Config} */ | ||
module.exports = { | ||
- preset: 'sku/config/jest', | ||
+ preset, | ||
}; | ||
``` | ||
|
||
[testing documentation]: https://seek-oss.github.io/sku/#/./docs/testing |
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,11 @@ | ||
--- | ||
'sku': major | ||
--- | ||
|
||
Add explicit package exports | ||
|
||
**BREAKING CHANGE**: | ||
|
||
Importing from arbitrary subpaths within `sku` is no longer possible. See the [API documentation] for a comprehensive list of `sku`'s API entrypoints. | ||
|
||
[API documentation]: https://seek-oss.github.io/sku/#/./docs/api |
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
const { preset } = require('sku/config/jest'); | ||
|
||
/** @type {import('jest').Config} */ | ||
module.exports = { | ||
preset: 'sku/config/jest', | ||
preset, | ||
}; |
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 @@ | ||
export const preset: string; |
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,8 @@ | ||
// @ts-check | ||
|
||
// Relative preset paths must start with `./` or jest complains | ||
const preset = './node_modules/sku/config/jest/jest-preset.js'; | ||
|
||
module.exports = { | ||
preset, | ||
}; |
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 was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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