-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add ability to build ts|tsx from node_modules (#46)
**Migration guide for Node 20 and no_dist:** First, create a `no_dist` branch and do the following in the package.json: * Replace all of our dependencies with the `#no_dist` branch * Update the exports/main/types fields. This has to be done according what is already exported, but if no exports field exists, you the following: ```json "main": "src/index.ts", "types": "src/index.ts", "exports": { ".": { "types": [ "./dist/index.d.ts", "./src/index.ts" ], "import": [ "./dist/index.js", "./src/index.ts" ], "default": [ "./dist/index.js", "./src/index.ts" ] }, "./phovea_registry": [ "./dist/phovea_registry.js", "./src/phovea_registry.ts" ], "./dist/phovea_registry": [ "./dist/phovea_registry.js", "./src/phovea_registry.ts" ], "./dist/scss/*": [ "./dist/scss/*", "./src/scss/*" ], "./package.json": "./package.json" }, ``` * Switch to Node 20 using `nvm use 20.9` (this should be the default! Uninstall all other node versions using nvm uninstall ...) * Then install and test using `rm -rf yarn.lock node_modules && yarn && yarn run all && yarn webpack:prod && yarn start dev_server_only=true` * In the end, make sure to create a PR and link it in the repo sheet (see Node20 and no_dist column) If you encounter any issues, please report them.
- Loading branch information
Showing
6 changed files
with
39 additions
and
17 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
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