Skip to content

Commit

Permalink
try npm hack
Browse files Browse the repository at this point in the history
  • Loading branch information
cspotcode committed May 7, 2023
1 parent a0d46e6 commit da276b5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"coverage-report": "nyc report --reporter=lcov",
"__prepack_template__": "yarn clean && yarn build-nopack",
"prepack": "rimraf temp dist tsconfig.schema.json tsconfig.schemastore-schema.json tsconfig.tsbuildinfo tests/ts-node-packed.tgz tests/node_modules tests/tmp && tsc -b ./tsconfig.build-dist.json && typescript-json-schema --topRef --refs --validationKeywords allOf --out tsconfig.schema.json tsconfig.build-schema.json TsConfigSchema && node --require ./register ./scripts/create-merged-schema",
"prepare": "workaround-broken-npm-prepack-behavior prepack",
"api-extractor": "api-extractor run --local --verbose"
},
"repository": {
Expand Down Expand Up @@ -136,7 +137,8 @@
"throat": "^6.0.1",
"typedoc": "^0.22.10",
"typescript": "4.7.4",
"typescript-json-schema": "^0.54.0"
"typescript-json-schema": "^0.54.0",
"workaround-broken-npm-prepack-behavior": "https://github.com/cspotcode/workaround-broken-npm-prepack-behavior#5a3cebc7b2d33d580f31f47c6eacc83b5e02b90e"
},
"peerDependencies": {
"@swc/core": ">=1.2.50",
Expand Down
2 changes: 1 addition & 1 deletion scripts/build-pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const { join } = require('path');
const rootDir = join(__dirname, '..');
const testDir = join(__dirname, '../tests');
const tarballPath = join(testDir, 'ts-node-packed.tgz');
exec(`yarn pack --out "${tarballPath}"`, { cwd: rootDir }, (err, stdout) => {
exec(`yarn pack --out "${tarballPath}"`, { cwd: rootDir }, (err, stdout) => {
if (err) {
console.error(err);
process.exit(1);
Expand Down
10 changes: 10 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3841,6 +3841,7 @@ __metadata:
typescript: 4.7.4
typescript-json-schema: ^0.54.0
v8-compile-cache-lib: ^3.0.1
workaround-broken-npm-prepack-behavior: "https://github.com/cspotcode/workaround-broken-npm-prepack-behavior#5a3cebc7b2d33d580f31f47c6eacc83b5e02b90e"
peerDependencies:
"@swc/core": ">=1.2.50"
"@swc/wasm": ">=1.2.50"
Expand Down Expand Up @@ -4064,6 +4065,15 @@ __metadata:
languageName: node
linkType: hard

"workaround-broken-npm-prepack-behavior@https://github.com/cspotcode/workaround-broken-npm-prepack-behavior#5a3cebc7b2d33d580f31f47c6eacc83b5e02b90e":
version: 0.0.1
resolution: "workaround-broken-npm-prepack-behavior@https://github.com/cspotcode/workaround-broken-npm-prepack-behavior.git#commit=5a3cebc7b2d33d580f31f47c6eacc83b5e02b90e"
bin:
workaround-broken-npm-prepack-behavior: bin.mjs
checksum: d6463d2e385fe54fb673c842e19b3cbc25f9fef0e88765377b61f078ad32448c7875a4708d3da850c9fa868321b3850ad71a36e49c4770732baecd37ee22e485
languageName: node
linkType: hard

"wrap-ansi@npm:^6.2.0":
version: 6.2.0
resolution: "wrap-ansi@npm:6.2.0"
Expand Down

0 comments on commit da276b5

Please sign in to comment.