Skip to content

Commit

Permalink
fix: fix running the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Sep 5, 2024
1 parent dc5e551 commit 4842311
Show file tree
Hide file tree
Showing 3 changed files with 125 additions and 150 deletions.
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
hoist-pattern[]=*eslint*
hoist-pattern[]=*babel*
hoist-pattern[]=*types*
18 changes: 10 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@
"scripts": {
"build": "dub build --config=executable",
"build.benchmark": "dub build --config=benchmark --build release-nobounds --compiler=ldc2",
"build.browser": "npm run build.wasm && parcel build --target browser ./src/browser/index.html",
"build.node": "npm run build.release && node ./src/node/build.js && npm run build.node.js",
"build.browser": "pnpm run build.wasm && parcel build --target browser ./src/browser/index.html",
"build.node": "pnpm run build.release && node ./src/node/build.js && pnpm run build.node.js",
"build.node.js": "tsc -p ./src/node/tsconfig.json",
"build.profile": "pnpm build -- --build profile --compiler=ldc2 && node ./src/node/build.js && npm run build.node.js",
"build.release": "pnpm build -- --build release-nobounds --compiler=ldc2",
"build.profile": "pnpm build --build profile --compiler=ldc2 && node ./src/node/build.js && pnpm run build.node.js",
"build.release": "pnpm build --build release-nobounds --compiler=ldc2",
"build.wasm": "ldc2 ./src/wasm/wasm.d ./src/native/lib.d --od ./dist --O3 --mtriple=wasm32-unknown-unknown-wasm",
"clean": "shx rm -rf ./dist ./despacer/build/ ./test/fixtures/*/*-minified.json",
"format": "prettier -l --cache --write . && npm run format.d",
"format": "prettier -l --cache --write . && pnpm run format.d",
"format.d": "dub run --build=release --quiet dfmt -- --soft_max_line_length 110 --indent_size 2 --inplace ./src ./benchmark",
"lint": "eslint . --fix",
"prepublishOnly": "shx rm -rf ./dist/tsconfig.tsbuildinfo ./dist/build.*",
"start.benchmark.node": "node ./benchmark/native-benchmark.mjs",
"start.browser": "servor ./dist/ --browse --reload",
"start.node": "node ./dist/node/cli.js",
"start.profile": "shx rm -rf ./trace.* && npm run start.benchmark.node && profdump.exe --dot trace.log trace.dot && dot -Tsvg trace.dot -o trace.svg && ./trace.svg",
"test": "jasmine ./test/index-test.mjs",
"start.profile": "shx rm -rf ./trace.* && pnpm run start.benchmark.node && profdump.exe --dot trace.log trace.dot && dot -Tsvg trace.dot -o trace.svg && ./trace.svg",
"test": "pnpm run build.node && jasmine ./test/index-test.mjs",
"test.format": "prettier -l --cache . --check",
"test.lint": "eslint .",
"zip": "zip -9 -j ./dist/minijson-windows-x64.zip ./dist/win32-x64/minijson.exe && zip -9 -j ./dist/minijson-macos-x64.zip ./dist/darwin-x64/minijson && zip -9 -j ./dist/minijson-linux-x64.zip ./dist/linux-x64/minijson"
Expand All @@ -49,7 +49,9 @@
"prettier-config-atomic": "^4.0.0",
"servor": "^4.0.2",
"shx": "0.3.4",
"strip-json-comments": "^5.0.1"
"strip-json-comments": "^5.0.1",
"typescript": "^5.5.4",
"undici-types": "^6.19.8"
},
"keywords": [
"json",
Expand Down
Loading

0 comments on commit 4842311

Please sign in to comment.