-
Notifications
You must be signed in to change notification settings - Fork 479
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #596 from stephensli/fix/package-flatten
fix: use npm run publish to release the dist folder directly
- Loading branch information
Showing
2 changed files
with
24 additions
and
12 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,9 @@ | ||
// This is meant to run in a hook before npm pack. | ||
// Reporting an error from the hook interrupts the command. | ||
if (process.env.BYPASS_SAFETY_CHECK === 'false' || process.env.BYPASS_SAFETY_CHECK === undefined) { | ||
console.error('Run `npm run build:tarball` or `npm run publish:tarball` to pack or publish the package'); | ||
process.exit(1); | ||
} else if (process.env.BYPASS_SAFETY_CHECK !== 'true') { | ||
console.error('Invalid value of the BYPASS_SAFETY_CHECK variable. Must be "true", "false" or unset.'); | ||
process.exit(1); | ||
} |
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