Skip to content
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

Create package.json after cleaning build directory #206

Merged
merged 2 commits into from
Sep 5, 2023

Conversation

jonkoops
Copy link
Contributor

@jonkoops jonkoops commented Sep 1, 2023

This changes the prebuild script so that it creates the package.json needed to properly support CommonJS modules in the build directory. Before this file would be created after the build finishes, but in some conditions such as running the build in watch mode this file would never be written (see #195 (comment)).

This also replaces rimraf with shx, which allows us to run Unix commands in a cross-platform manner.

@jonkoops jonkoops requested a review from a team as a code owner September 1, 2023 10:17
package.json Outdated Show resolved Hide resolved
@jonkoops
Copy link
Contributor Author

jonkoops commented Sep 1, 2023

Looks like the recently released NPM 10 is causing the CI to fail here, I've created #207 to fix this.

@jonkoops jonkoops force-pushed the prebuild-copy-package branch from c56b6fa to 72f1e27 Compare September 1, 2023 21:20
@jonkoops jonkoops force-pushed the prebuild-copy-package branch from 72f1e27 to edca8fc Compare September 3, 2023 13:06
@frederikprijck frederikprijck merged commit f7d7091 into auth0:beta Sep 5, 2023
@jonkoops jonkoops deleted the prebuild-copy-package branch September 5, 2023 15:39
frederikprijck added a commit that referenced this pull request Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants