-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: generate non-overlapping artifacts (#1104)
The @jsii/spec and jsii-spec packages would generate the same build artifact, causing only one of them (jsii-spec) to be considered. This ensures distinct artifact names are generated for each.
- Loading branch information
1 parent
ff1d017
commit 2add627
Showing
2 changed files
with
10 additions
and
4 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 |
---|---|---|
@@ -1,5 +1,11 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
rm -fr dist/js | ||
mkdir -p dist/js | ||
mv $(npm pack) dist/js | ||
|
||
package_name=$(node -p "require('./package.json').name") | ||
target_file="dist/js/${package_name/\//-}.tgz" | ||
|
||
mkdir -p $(dirname ${target_file}) | ||
|
||
mv $(npm pack) ${target_file} |
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