Skip to content
This repository was archived by the owner on Mar 23, 2021. It is now read-only.

Commit 1ec0d8b

Browse files
da-kamiFranck Royer
authored andcommitted
Use parcel bundler to fix relative path to common when releasing
1 parent 5aabdaa commit 1ec0d8b

File tree

5 files changed

+10128
-426
lines changed

5 files changed

+10128
-426
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
6464
# We need to do bash -c to make sure this also works on GitBash for Windows.
6565
# GitHub actions uses GitBash for Windows if we say 'shell: bash' on a Windows executor.
66-
ARCHIVE=$(bash -c "node create/npm/dist/print_archive_name.js ${VERSION}")
66+
ARCHIVE=$(bash -c "node dist/print_archive_name.js ${VERSION}")
6767
6868
tar czvf ${ARCHIVE} -C target/release create-comit-app${{ matrix.binary-suffix }}
6969
@@ -86,7 +86,7 @@ jobs:
8686
8787
# We need to do bash -c to make sure this also works on GitBash for Windows.
8888
# GitHub actions uses GitBash for Windows if we say 'shell: bash' on a Windows executor.
89-
ARCHIVE=$(bash -c "node scripts/npm/dist/print_archive_name.js ${VERSION}")
89+
ARCHIVE=$(bash -c "node dist/print_archive_name.js ${VERSION}")
9090
9191
tar czvf ${ARCHIVE} -C target/release comit-scripts${{ matrix.binary-suffix }}
9292

create/npm/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Create a new COMIT app with one command.",
55
"main": "dist/main.js",
66
"scripts": {
7-
"build": "tsc",
7+
"build": "parcel build print_archive_name.ts --target=node --bundle-node-modules && parcel build main.ts --target=node --bundle-node-modules",
88
"prepublish": "tsc",
99
"fix": "tslint -p . --fix && prettier --write '**/*.{ts,json,yml}'",
1010
"check": "tsc --noEmit && tslint -p . && prettier --check '**/*.{ts,json,yml}'",
@@ -32,6 +32,7 @@
3232
"devDependencies": {
3333
"@types/node": "^14.0.5",
3434
"@types/targz": "^1.0.0",
35+
"parcel-bundler": "^1.12.4",
3536
"prettier": "^2.0.5",
3637
"tslint": "^6.1.2",
3738
"tslint-config-prettier": "^1.18.0",

0 commit comments

Comments
 (0)