-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
54 lines (54 loc) · 1.97 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
{
"type": "module",
"private": "true",
"main": "dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"lint": "standardx -v \"./**/*.ts\"",
"build-tests:browser": "esbuild test/*.browser.ts --bundle --format=cjs --keep-names > test/test-bundle.js",
"test:node": "npm run build-tests && NODE_ENV=test node ./test/index.js | npx tap-arc",
"test:browser": "npm run build-tests:browser && cat test/index.html | tape-run --input=html --static=test | tap-arc",
"test": "npm run build && npm run test:node && npm run test:browser",
"build-cjs": "esbuild src/*.ts --format=cjs --keep-names --outdir=./dist --out-extension:.js=.cjs",
"build-mjs": "esbuild src/*.ts --format=esm --keep-names --outdir=./dist --out-extension:.js=.js",
"build": "mkdir -p ./dist && rm -rf ./dist/* && npm run build-cjs && tsc",
"build-tests": "esbuild test/*.ts --platform=node --format=esm --outdir=test --keep-names",
"preversion": "npm run lint",
"postversion": "git push && git push --tags && npm publish",
"prepublishOnly": "npm run build"
},
"dependencies": {
"@oddjs/odd": "^0.37.2"
},
"devDependencies": {
"@socketsupply/tapzero": "^0.7.1",
"@ssc-hermes/node-components": "^0.1.12",
"@ssc-hermes/profile": "^0.4.1",
"@typescript-eslint/parser": "^5.55.0",
"esbuild": "^0.15.18",
"standardx": "^7.0.0",
"tap-arc": "^0.3.5",
"tape-run": "^10.0.0",
"typescript": "^5.0.2"
},
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./*": {
"import": [
"./dist/*.js",
"./dist/*"
],
"require": [
"./dist/*.cjs",
"./dist/*"
]
}
},
"license": "AGPL-3.0-or-later",
"directories": {
"test": "test"
}
}