-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
52 lines (52 loc) · 1.78 KB
/
package.json
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
{
"name": "js-weird",
"version": "0.0.1",
"description": "Transform a javascript code to obfuscated code using weird arrays",
"main": "index.js",
"bin": "bin.js",
"author": "Apika Luca",
"license": "MIT",
"exports": {
".": "./index.js",
"./parse": "./parse.js",
"./lib/*": "./lib/*"
},
"devDependencies": {
"@ef-carbon/tspm": "^2.2.5",
"@swc/core": "^1.2.218",
"@types/chai": "^4.3.1",
"@types/mocha": "^9.1.1",
"@types/node": "^18.6.0",
"@types/prettier": "^2.6.4",
"@types/uglify-js": "^3.16.0",
"chai": "^4.3.6",
"mocha": "^10.0.0",
"ts-mocha": "^10.0.0",
"typescript": "^4.7.4"
},
"scripts": {
"build:clear": "rm -rf ./lib",
"build:mv": "mv ./lib/src/* ./lib/ && rm -rf ./lib/src/",
"build:fix": "npm run inter:all-exports && npm run use-swc && npx ef-tspm --tsconfig ./tsconfig.build.json && npm run build:bin",
"build:bin": "cp ./bin.js ./bin && chmod +x ./bin",
"build:build": "tsc -p ./tsconfig.build.json",
"build": "npm run build:clear && npm run build:build && npm run build:mv && npm run build:fix",
"test": "ts-mocha -p ./tsconfig.build.json --paths test/**/*.ts --exclude test/**/_*.ts",
"test:unit": "ts-mocha -p ./tsconfig.build.json --paths src/**/*.test.ts",
"test:all": "npm run test && npm run test:unit",
"prepublishOnly": "npm run build",
"use-swc": "npm run inter:use-swc",
"inter:bin": "npm run inter:ex-node -- src/bin.ts ",
"inter:ex-node": "ts-node -P ./tsconfig.build.json -r tsconfig-paths/register",
"inter:add-export": "ts-node scripts/add-export.ts",
"inter:all-exports": "ts-node scripts/all-exports.ts",
"inter:use-swc": "ts-node scripts/use-swc.ts"
},
"dependencies": {
"@swc/helpers": "^0.4.3",
"prettier": "^2.7.1",
"regenerator-runtime": "^0.13.9",
"tslib": "^2.4.0",
"uglify-js": "^3.16.3"
}
}