Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
60 lines (60 loc) · 2.83 KB
/
Copy pathpackage.json
File metadata and controls
60 lines (60 loc) · 2.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"$schema": "./.vscode/schemas/package.json",
"name": "letsroleenhanced",
"version": "7.1.0",
"main": "src/lre.ts",
"license": "MIT",
"type": "module",
"devDependencies": {
"@eslint/js": "^10.0.1",
"@stylistic/eslint-plugin": "^5.10.0",
"@swc/core": "^1.16.2",
"@types/node": "^26.4.1",
"@typescript-eslint/eslint-plugin": "^8.69.0",
"@typescript-eslint/parser": "^8.69.0",
"@vitest/coverage-v8": "^5.0.0",
"@vitest/eslint-plugin": "^1.6.27",
"cspell": "^10.2.1",
"esbuild": "^0.28.2",
"eslint": "^10.9.1",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.6",
"jiti": "^2.7.0",
"prettier": "^3.9.6",
"ts-node": "^10.9.2",
"ts-unused-exports": "^11.0.1",
"tsx": "^4.23.13",
"typescript": "^5.9.3",
"typescript-eslint": "^8.69.0",
"vite": "^6.4.0",
"vitest": "^5.0.0"
},
"config": {
"outLREFile": "build/lre.js",
"outLRETestFile": "build/lre-test.js"
},
"scripts": {
"prepare": "bash scripts/install-git-hooks.sh",
"hooks:install": "bash scripts/install-git-hooks.sh",
"test": "vitest run",
"testwatch": "vitest",
"buildswcplugin": "cd swc-plugins/lre-transforms && CARGO_TARGET_DIR=./target cargo build-wasip1 --release",
"buildswcpoc": "yarn buildswcplugin && tsx build-swc-poc.ts",
"testswc": "npx tsx test.ts",
"count_output": "echo \"Number of lines in $npm_package_config_outLREFile $(cat $npm_package_config_outLREFile | wc -l) ($(cat $npm_package_config_outLREFile | wc -c) caracters)\"",
"buildlre": "f() { tsx build.ts --output $npm_package_config_outLREFile && node --check $npm_package_config_outLREFile && yarn count_output; }; f",
"buildlredebug": "f() { tsx build.ts --output $npm_package_config_outLREFile --debug && node --check build/lre.debug.js; }; f",
"buildlretest": "f() { tsx build.ts --input src/test.lre.ts --output $npm_package_config_outLRETestFile --debug && node --check build/lre-test.debug.js; }; f",
"build": "yarn buildswcplugin && yarn buildlre",
"builddebug": "yarn buildswcplugin && yarn buildlredebug",
"buildtest": "yarn buildswcplugin && yarn buildlretest",
"buildtrace": "yarn buildswcplugin && yarn buildlredebug && tsx build-trace.ts && node --check build/lre.trace.js",
"buildall": "yarn buildswcplugin && yarn buildlre && yarn buildlredebug && yarn buildlretest",
"cleanbuild": "f() { shopt -s nullglob; for f in build/*; do rm -rf \"$f\"; done; }; f",
"spell": "yarn cspell --no-progress --no-summary --gitignore .",
"testsilent": "vitest run --reporter=json --outputFile=/dev/null --no-coverage",
"tscheck": "tsc --noEmit",
"checkcode": "yarn ts-unused-exports tsconfig.json --excludePathsFromReport=\"src/mock;src/swc\" && yarn spell && yarn tscheck && yarn eslint",
"checkall": "yarn checkcode && yarn testsilent"
}
}