Skip to content

Commit

Permalink
Migrate to @yao-pkg/pkg (#209)
Browse files Browse the repository at this point in the history
pkg is no more supported by Vercel, we're moving to @yao-pkg/pkg
  • Loading branch information
Corentin Mors authored Feb 2, 2024
1 parent d63de6a commit 513f795
Show file tree
Hide file tree
Showing 4 changed files with 106 additions and 75 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/manual-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- run: yarn workspaces focus --all --production
# package final binaries
- run: |
yarn dlx pkg . -t node18-${{ matrix.settings.target }} -o bundle/dcli-${{ matrix.settings.target }}${{ matrix.settings.extension }} -C GZip "--public" "--public-packages" "tslib,thirty-two" "--no-bytecode"
yarn dlx @yao-pkg/pkg . -t node18-${{ matrix.settings.target }} -o bundle/dcli-${{ matrix.settings.target }}${{ matrix.settings.extension }} -C GZip "--public" "--public-packages" "tslib,thirty-two" "--no-bytecode"
- name: Archive binary artifact
uses: actions/upload-artifact@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- run: yarn workspaces focus --all --production
# package final binaries
- run: |
yarn dlx pkg . -t node18-${{ matrix.settings.target }} -o bundle/dcli-${{ matrix.settings.target }}${{ matrix.settings.extension }} -C GZip "--public" "--public-packages" "tslib,thirty-two" "--no-bytecode"
yarn dlx @yao-pkg/pkg . -t node18-${{ matrix.settings.target }} -o bundle/dcli-${{ matrix.settings.target }}${{ matrix.settings.extension }} -C GZip "--public" "--public-packages" "tslib,thirty-two" "--no-bytecode"
- name: Archive binary artifact
uses: actions/upload-artifact@v3
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
"lint": "eslint src",
"format": "prettier --write src && eslint --fix src",
"start": "node dist",
"pkg:linux": "pkg . -t node18-linux-x64 -o bundle/dcli-linux",
"pkg:macos": "pkg . -t node18-macos-x64 -o bundle/dcli-macos",
"pkg:macos-arm": "pkg . -t node18-macos-arm64 -o bundle/dcli-macos-arm",
"pkg:win": "pkg . -t node18-win-x64 -o bundle/dcli-win.exe",
"pkg:linux": "pkg . -t node18-linux-x64 -o bundle/dcli-linux -C GZip --public --public-packages tslib,thirty-two --no-bytecode",
"pkg:macos": "pkg . -t node18-macos-x64 -o bundle/dcli-macos -C GZip --public --public-packages tslib,thirty-two --no-bytecode",
"pkg:macos-arm": "pkg . -t node18-macos-arm64 -o bundle/dcli-macos-arm -C GZip --public --public-packages tslib,thirty-two --no-bytecode",
"pkg:win": "pkg . -t node18-win-x64 -o bundle/dcli-win.exe -C GZip --public --public-packages tslib,thirty-two --no-bytecode",
"pkg": "yarn run build && yarn run pkg:linux && yarn run pkg:macos && yarn run pkg:win",
"version:bump": "ts-node src/bumpVersion.ts",
"prepare": "husky install",
Expand All @@ -47,13 +47,13 @@
"@types/node": "^18.19.7",
"@typescript-eslint/eslint-plugin": "^6.19.0",
"@typescript-eslint/parser": "^6.19.0",
"@yao-pkg/pkg": "^5.11.1",
"chai": "^4.4.1",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"husky": "^8.0.3",
"mocha": "^10.2.0",
"pkg": "^5.8.1",
"prettier": "^3.0.3",
"ts-node": "^10.9.2",
"typescript": "^5.2.2"
Expand Down
167 changes: 99 additions & 68 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,52 +12,78 @@ __metadata:
languageName: node
linkType: hard

"@babel/generator@npm:7.18.2":
version: 7.18.2
resolution: "@babel/generator@npm:7.18.2"
"@babel/generator@npm:7.23.0":
version: 7.23.0
resolution: "@babel/generator@npm:7.23.0"
dependencies:
"@babel/types": "npm:^7.18.2"
"@jridgewell/gen-mapping": "npm:^0.3.0"
"@babel/types": "npm:^7.23.0"
"@jridgewell/gen-mapping": "npm:^0.3.2"
"@jridgewell/trace-mapping": "npm:^0.3.17"
jsesc: "npm:^2.5.1"
checksum: 961191f7548794711730e21adf215302c2f5f95bdc025ce997a31c4de39ec17c91e27d3ecdc1d641e7b1756872599045145a9334acbb80a5abfb626f678280e5
checksum: bd1598bd356756065d90ce26968dd464ac2b915c67623f6f071fb487da5f9eb454031a380e20e7c9a7ce5c4a49d23be6cb9efde404952b0b3f3c0c3a9b73d68a
languageName: node
linkType: hard

"@babel/helper-string-parser@npm:^7.18.10, @babel/helper-string-parser@npm:^7.22.5":
"@babel/helper-string-parser@npm:^7.22.5":
version: 7.22.5
resolution: "@babel/helper-string-parser@npm:7.22.5"
checksum: 7f275a7f1a9504da06afc33441e219796352a4a3d0288a961bc14d1e30e06833a71621b33c3e60ee3ac1ff3c502d55e392bcbc0665f6f9d2629809696fab7cdd
languageName: node
linkType: hard

"@babel/helper-validator-identifier@npm:^7.18.6, @babel/helper-validator-identifier@npm:^7.22.15":
"@babel/helper-string-parser@npm:^7.23.4":
version: 7.23.4
resolution: "@babel/helper-string-parser@npm:7.23.4"
checksum: c352082474a2ee1d2b812bd116a56b2e8b38065df9678a32a535f151ec6f58e54633cc778778374f10544b930703cca6ddf998803888a636afa27e2658068a9c
languageName: node
linkType: hard

"@babel/helper-validator-identifier@npm:^7.22.15":
version: 7.22.15
resolution: "@babel/helper-validator-identifier@npm:7.22.15"
checksum: 4c142549ab5a1235c638d89b52b612a32a123ae19b7da70708385b1e2522530b3c90c85e38604dc6a5fee6a7928b447edacd55176f48a70e103d232eb0da31e5
languageName: node
linkType: hard

"@babel/parser@npm:7.18.4":
version: 7.18.4
resolution: "@babel/parser@npm:7.18.4"
"@babel/helper-validator-identifier@npm:^7.22.20":
version: 7.22.20
resolution: "@babel/helper-validator-identifier@npm:7.22.20"
checksum: df882d2675101df2d507b95b195ca2f86a3ef28cb711c84f37e79ca23178e13b9f0d8b522774211f51e40168bf5142be4c1c9776a150cddb61a0d5bf3e95750b
languageName: node
linkType: hard

"@babel/parser@npm:7.23.0":
version: 7.23.0
resolution: "@babel/parser@npm:7.23.0"
bin:
parser: ./bin/babel-parser.js
checksum: 7aca0241b2ee45ac1aafd39b58af6f1d57e2fdefd98ffd5f3834cb1f1fc0577315e21931fe9356810b2c0613fd3af6ed94a2774ecf79c5da14315bc5a319b216
checksum: 201641e068f8cca1ff12b141fcba32d7ccbabc586961bd1b85ae89d9695867f84d57fc2e1176dc4981fd28e5e97ca0e7c32cd688bd5eabb641a302abc0cb5040
languageName: node
linkType: hard

"@babel/types@npm:7.19.0":
version: 7.19.0
resolution: "@babel/types@npm:7.19.0"
"@babel/types@npm:7.23.0":
version: 7.23.0
resolution: "@babel/types@npm:7.23.0"
dependencies:
"@babel/helper-string-parser": "npm:^7.18.10"
"@babel/helper-validator-identifier": "npm:^7.18.6"
"@babel/helper-string-parser": "npm:^7.22.5"
"@babel/helper-validator-identifier": "npm:^7.22.20"
to-fast-properties: "npm:^2.0.0"
checksum: 6839d041b69746f35c74d25d82f49ea4e5844cf7f2d781f57aafd8ce4f5ac14ab7749f690454ea25147c9b2251cc753ae9733094e7a6f72f4e1f785f275cb174
checksum: ca5b896a26c91c5672254725c4c892a35567d2122afc47bd5331d1611a7f9230c19fc9ef591a5a6f80bf0d80737e104a9ac205c96447c74bee01d4319db58001
languageName: node
linkType: hard

"@babel/types@npm:^7.18.2, @babel/types@npm:^7.8.3":
"@babel/types@npm:^7.23.0":
version: 7.23.6
resolution: "@babel/types@npm:7.23.6"
dependencies:
"@babel/helper-string-parser": "npm:^7.23.4"
"@babel/helper-validator-identifier": "npm:^7.22.20"
to-fast-properties: "npm:^2.0.0"
checksum: 07e70bb94d30b0231396b5e9a7726e6d9227a0a62e0a6830c0bd3232f33b024092e3d5a7d1b096a65bbf2bb43a9ab4c721bf618e115bfbb87b454fa060f88cbf
languageName: node
linkType: hard

"@babel/types@npm:^7.8.3":
version: 7.22.15
resolution: "@babel/types@npm:7.22.15"
dependencies:
Expand Down Expand Up @@ -119,6 +145,7 @@ __metadata:
"@types/node": "npm:^18.19.7"
"@typescript-eslint/eslint-plugin": "npm:^6.19.0"
"@typescript-eslint/parser": "npm:^6.19.0"
"@yao-pkg/pkg": "npm:^5.11.1"
better-sqlite3: "npm:^8.7.0"
chai: "npm:^4.4.1"
commander: "npm:^11.1.0"
Expand All @@ -132,7 +159,6 @@ __metadata:
jsonpath-plus: "npm:^7.2.0"
mocha: "npm:^10.2.0"
otplib: "npm:^12.0.1"
pkg: "npm:^5.8.1"
playwright-core: "npm:^1.40.1"
prettier: "npm:^3.0.3"
ts-node: "npm:^10.9.2"
Expand Down Expand Up @@ -244,7 +270,7 @@ __metadata:
languageName: node
linkType: hard

"@jridgewell/gen-mapping@npm:^0.3.0":
"@jridgewell/gen-mapping@npm:^0.3.2":
version: 0.3.3
resolution: "@jridgewell/gen-mapping@npm:0.3.3"
dependencies:
Expand Down Expand Up @@ -286,6 +312,16 @@ __metadata:
languageName: node
linkType: hard

"@jridgewell/trace-mapping@npm:^0.3.17":
version: 0.3.22
resolution: "@jridgewell/trace-mapping@npm:0.3.22"
dependencies:
"@jridgewell/resolve-uri": "npm:^3.1.0"
"@jridgewell/sourcemap-codec": "npm:^1.4.14"
checksum: 48d3e3db00dbecb211613649a1849876ba5544a3f41cf5e6b99ea1130272d6cf18591b5b67389bce20f1c871b4ede5900c3b6446a7aab6d0a3b2fe806a834db7
languageName: node
linkType: hard

"@jridgewell/trace-mapping@npm:^0.3.9":
version: 0.3.19
resolution: "@jridgewell/trace-mapping@npm:0.3.19"
Expand Down Expand Up @@ -1120,6 +1156,48 @@ __metadata:
languageName: node
linkType: hard

"@yao-pkg/pkg-fetch@npm:3.5.7":
version: 3.5.7
resolution: "@yao-pkg/pkg-fetch@npm:3.5.7"
dependencies:
chalk: "npm:^4.1.2"
fs-extra: "npm:^9.1.0"
https-proxy-agent: "npm:^5.0.0"
node-fetch: "npm:^2.6.6"
progress: "npm:^2.0.3"
semver: "npm:^7.3.5"
tar-fs: "npm:^2.1.1"
yargs: "npm:^16.2.0"
bin:
pkg-fetch: lib-es5/bin.js
checksum: cecb2403a2afa9d8a6be27b6c69cddd92c5b1a63c56c2afcf295f245b5bfa0e4b2b8ea131e246d4bd4952068a829f0e0821ed946206af5342f20c22046656a8f
languageName: node
linkType: hard

"@yao-pkg/pkg@npm:^5.11.1":
version: 5.11.1
resolution: "@yao-pkg/pkg@npm:5.11.1"
dependencies:
"@babel/generator": "npm:7.23.0"
"@babel/parser": "npm:7.23.0"
"@babel/types": "npm:7.23.0"
"@yao-pkg/pkg-fetch": "npm:3.5.7"
chalk: "npm:^4.1.2"
fs-extra: "npm:^9.1.0"
globby: "npm:^11.1.0"
into-stream: "npm:^6.0.0"
is-core-module: "npm:2.9.0"
minimist: "npm:^1.2.6"
multistream: "npm:^4.1.0"
prebuild-install: "npm:7.1.1"
resolve: "npm:^1.22.0"
stream-meter: "npm:^1.0.4"
bin:
pkg: lib-es5/bin.js
checksum: 8c4a31921686f9eca7734cc9e492487878ccfd01b3106522b400e0ed39ee892e493a40c76b1118529abecdcec108bf483d5e7f924a461cce98cdc70381c58fcd
languageName: node
linkType: hard

"abbrev@npm:^1.0.0":
version: 1.1.1
resolution: "abbrev@npm:1.1.1"
Expand Down Expand Up @@ -4300,53 +4378,6 @@ __metadata:
languageName: node
linkType: hard

"pkg-fetch@npm:3.4.2":
version: 3.4.2
resolution: "pkg-fetch@npm:3.4.2"
dependencies:
chalk: "npm:^4.1.2"
fs-extra: "npm:^9.1.0"
https-proxy-agent: "npm:^5.0.0"
node-fetch: "npm:^2.6.6"
progress: "npm:^2.0.3"
semver: "npm:^7.3.5"
tar-fs: "npm:^2.1.1"
yargs: "npm:^16.2.0"
bin:
pkg-fetch: lib-es5/bin.js
checksum: e8b1f5852fa426ba793508e947901ed2863e5a5455191209843874ec769e0bfcdf16d2c92cf2128db2fd494be0203ada5eaf68a4d9ace3a7dc30e2e83bd7bbce
languageName: node
linkType: hard

"pkg@npm:^5.8.1":
version: 5.8.1
resolution: "pkg@npm:5.8.1"
dependencies:
"@babel/generator": "npm:7.18.2"
"@babel/parser": "npm:7.18.4"
"@babel/types": "npm:7.19.0"
chalk: "npm:^4.1.2"
fs-extra: "npm:^9.1.0"
globby: "npm:^11.1.0"
into-stream: "npm:^6.0.0"
is-core-module: "npm:2.9.0"
minimist: "npm:^1.2.6"
multistream: "npm:^4.1.0"
pkg-fetch: "npm:3.4.2"
prebuild-install: "npm:7.1.1"
resolve: "npm:^1.22.0"
stream-meter: "npm:^1.0.4"
peerDependencies:
node-notifier: ">=9.0.1"
peerDependenciesMeta:
node-notifier:
optional: true
bin:
pkg: lib-es5/bin.js
checksum: 917cee784f8928ecb443b11f51a618fca238af5783a42244b873d8ac455c1e2000497f888eb78be4cfe9ec9193cafe127eb00553ec80f7035d1b6dc94a3e688a
languageName: node
linkType: hard

"playwright-core@npm:^1.40.1":
version: 1.40.1
resolution: "playwright-core@npm:1.40.1"
Expand Down

0 comments on commit 513f795

Please sign in to comment.