forked from ampproject/worker-dom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
132 lines (132 loc) · 3.48 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
{
"name": "@ampproject/worker-dom",
"version": "0.34.0",
"description": "A facsimile of a modern DOM implementation intended to run in a Web Worker.",
"main": "dist/main",
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "https://github.com/ampproject/worker-dom.git"
},
"engines": {
"node": ">=10.14"
},
"author": "The AMP HTML Authors",
"license": "Apache-2.0",
"scripts": {
"tsc:worker": "tsc -p src/worker-thread/tsconfig.json",
"tsc:main": "tsc -p src/main-thread/tsconfig.json",
"tsc:tests": "tsc -p src/test/tsconfig.json",
"tsc:tests-main": "tsc -p src/test/main-thread/tsconfig.json",
"clean": "rimraf output dist",
"pretest": "npm-run-all --parallel tsc:*",
"test": "ava -v",
"pre~rollup": "npm-run-all --parallel tsc:worker tsc:main",
"~rollup": "rollup --config config/rollup.config.mjs",
"lint:worker": "tslint -c config/tslint.json -p src/worker-thread/",
"lint:main": "tslint -c config/tslint.json -p src/main-thread/",
"lint": "npm-run-all --parallel lint:*",
"predemo": "cross-env DEBUG_BUNDLE=true npm-run-all ~rollup",
"demo": "node -r esm demo/server.js",
"build": "cross-env MINIFY_BUNDLE=true npm-run-all ~rollup",
"presize": "npm-run-all build",
"size": "filesize",
"release": "HUSKY_SKIP_HOOKS=1 np --no-2fa",
"prepublishOnly": "npm-run-all clean build",
"prepare": "husky install"
},
"devDependencies": {
"@ampproject/filesize": "4.3.0",
"@ampproject/rollup-plugin-closure-compiler": "0.27.0",
"@babel/cli": "7.23.4",
"@babel/core": "7.23.6",
"@babel/preset-env": "7.23.6",
"@rollup/plugin-babel": "6.0.4",
"@rollup/plugin-replace": "5.0.5",
"@types/node": "18.19.2",
"@types/sinon": "10.0.20",
"acorn": "8.11.2",
"acorn-walk": "8.3.0",
"ava": "3.15.0",
"babel-plugin-minify-replace": "0.5.0",
"babel-plugin-transform-remove-console": "6.9.4",
"benchmark": "2.1.4",
"cross-env": "7.0.3",
"esm": "3.2.25",
"husky": "8.0.3",
"jsdom": "22.1.0",
"lint-staged": "14.0.1",
"magic-string": "0.30.5",
"np": "8.0.4",
"npm-run-all": "4.1.5",
"polka": "0.5.2",
"prettier": "3.1.0",
"rimraf": "5.0.5",
"rollup": "3.29.4",
"rollup-plugin-analyzer": "4.0.0",
"rollup-plugin-terser": "7.0.2",
"sinon": "15.2.0",
"sirv": "2.0.3",
"tslint": "6.1.3",
"typescript": "5.3.2"
},
"lint-staged": {
"*.{js,ts}": [
"prettier --config config/.prettierrc --write"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "npm-run-all clean test clean size"
}
},
"filesize": {
"track": [
"./dist/*.(js|mjs)",
"./dist/worker/**/*.(js|mjs)",
"./dist/amp-production/**/*.(js|mjs)"
],
"./dist/main.mjs": {
"brotli": "5 kB"
},
"./dist/main.js": {
"brotli": "5.5 kB"
},
"./dist/worker/worker.mjs": {
"brotli": "13 kB"
},
"./dist/worker/worker.js": {
"brotli": "15 kB"
},
"./dist/amp-production/main.mjs": {
"brotli": "4.5 kB"
},
"./dist/amp-production/worker/worker.mjs": {
"brotli": "14 kB"
},
"./dist/amp-production/worker/worker.nodom.mjs": {
"brotli": "2 kB"
}
},
"esm": {
"cjs": true
},
"ava": {
"require": [
"esm"
],
"files": [
"output/test/**/*.test.js"
]
},
"volta": {
"node": "18.19.0",
"yarn": "1.22.21"
},
"publishConfig": {
"access": "public"
}
}