-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
167 lines (167 loc) · 3.99 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
{
"name": "clean-package",
"description": "Removes and replaces configuration keys in 'package.json' before creating an NPM package.",
"version": "2.2.0",
"author": {
"name": "roydukkey",
"email": "contact@changelog.me",
"url": "http://changelog.me"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://roydukkey@github.com/roydukkey/clean-package.git"
},
"homepage": "https://github.com/roydukkey/clean-package#readme",
"bugs": {
"url": "https://github.com/roydukkey/clean-package/issues"
},
"keywords": [
"npm",
"pack",
"package",
"package.json",
"publish",
"clean"
],
"bin": "./bin/main.js",
"main": "./dist/main.js",
"types": "./dist/main.d.ts",
"files": [
"/bin",
"/dist",
"/CHANGELOG.md",
"/LICENSE",
"/README.md",
"/common.js"
],
"config": {
"namespace": "clean-package",
"main": "./src/index.ts",
"cli": [
"./src/bin.ts",
"./dist/cli.js"
]
},
"dependencies": {
"dot-prop": "^6.0.1"
},
"devDependencies": {
"@babel/core": "^7.18.2",
"@babel/plugin-transform-runtime": "^7.18.2",
"@babel/preset-env": "^7.18.2",
"@babel/preset-typescript": "^7.15.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.4",
"@rollup/plugin-replace": "^3.0.0",
"@roydukkey/eslint-config": "^1.0.12",
"@types/jest": "^27.0.1",
"@types/node": "^16.7.9",
"@typescript-eslint/eslint-plugin": "^5.27.0",
"@typescript-eslint/parser": "^5.27.0",
"babel-jest": "^27.1.0",
"cspell": "^5.9.0",
"eslint": "^7.32.0",
"eslint-plugin-tsdoc": "^0.2.16",
"jest": "^27.1.0",
"rollup": "^2.56.3",
"rollup-plugin-license": "^2.5.0",
"rollup-plugin-ts": "^3.0.1",
"terser": "^5.7.2",
"typescript": "^4.4.2",
"yarpm": "^1.1.1"
},
"scripts": {
"clean": "node -e \"fs.rmSync('./dist', { recursive: true, force: true })\"",
"lint": "yarpm run lint:spelling && yarpm run lint:es",
"lint:es": "eslint --ext js,ts ./",
"lint:spelling": "cspell --config './.vscode/cSpell.json' --no-progress '**/{.*/**/,.*/**/.,,.}*'",
"build": "yarpm run clean && rollup --config ./rollup.config.ts --configPlugin rollup-plugin-ts",
"minify": "terser $npm_package_main --compress toplevel --mangle toplevel -o $npm_package_main & terser $npm_package_config_cli_1 --compress toplevel --mangle toplevel -o $npm_package_config_cli_1",
"test": "jest -i",
"test:bin": "node $npm_package_config_cli_1",
"test:build": "yarpm run test -- --setupTestFrameworkScriptFile=./test/setup/prepack.ts",
"prepack": "yarpm run lint && yarpm run build && yarpm run minify && yarpm run test:build -- --coverage=false --verbose=false && node $npm_package_config_cli_1",
"new:pack": "yarpm pack && node $npm_package_config_cli_1 restore",
"new:publish": "yarpm publish && node $npm_package_config_cli_1 restore"
},
"clean-package": {
"indent": "\t",
"extends": "../common",
"remove": [
"config.main",
"config.cli",
"scripts"
]
},
"jest": {
"testEnvironment": "node",
"verbose": true,
"collectCoverage": true,
"coverageDirectory": ".jest/coverage",
"cacheDirectory": ".jest/cache",
"testSequencer": "./test/setup/sequencer.js",
"bail": true,
"coveragePathIgnorePatterns": [
"./test/data",
"./test/setup"
],
"setupFiles": [
"./test/setup/default.ts"
]
},
"babel": {
"presets": [
[
"@babel/preset-env",
{
"targets": {
"node": "current"
}
}
],
[
"@babel/preset-typescript"
]
],
"comments": false
},
"eslintConfig": {
"extends": [
"@roydukkey/eslint-config"
],
"env": {
"node": true
},
"ignorePatterns": [
"dist"
],
"overrides": [
{
"files": [
"*.js?(x)"
],
"rules": {
"@typescript-eslint/no-require-imports": "off"
}
},
{
"files": [
"*.ts?(x)"
],
"rules": {
"@typescript-eslint/no-type-alias": "off"
}
},
{
"files": [
"*.{j,t}s?(x)"
],
"rules": {
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/no-var-requires": "off"
}
}
]
}
}