-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
60 lines (60 loc) · 1.83 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
{
"name": "typeid-ts",
"version": "0.3.8",
"description": "TypeID in Typescript",
"main": "./build/cjs/src/index.js",
"types": "./src/index.d.ts",
"type": "module",
"exports": {
"import": "./build/esm/src/index.js",
"require": "./build/cjs/src/index.js"
},
"bin": {
"typeid": "./build/esm/bin/cli.js"
},
"devDependencies": {
"@types/chai": "^4.3.5",
"@types/mocha": "^10.0.1",
"@types/node": "~18",
"@types/sinon": "^10.0.15",
"@typescript-eslint/eslint-plugin": "~5.59",
"@typescript-eslint/parser": "~5.59",
"chai": "^4.3.7",
"eslint": "~8.38",
"eslint-config-prettier": "~8.8",
"mocha": "^10.2.0",
"prettier": "~2.8",
"rimraf": "~5.0",
"shx": "^0.3.4",
"sinon": "^15.2.0",
"ts-api-utils": "~0.0.44",
"ts-node": "^10.9.1",
"typescript": "~5.0"
},
"dependencies": {
"commander": "^11.0.0",
"tslib": "~2.5",
"uuidv7": "^0.5.2"
},
"scripts": {
"clean": "rimraf coverage build tmp",
"prebuild": "npm run lint",
"prepublishOnly": "tsc -p tsconfig.json",
"build": "npm run build-esm && npm run build-cjs",
"build-esm": "rm -rf build/esm && tsc -p tsconfig.json && echo '{\"type\": \"module\"}' > build/esm/package.json",
"build-cjs": "rm -rf build/cjs && tsc -p tsconfig.cjs.json && shx echo '{\"type\": \"commonjs\"}' > build/cjs/package.json",
"build:watch": "tsc -w -p tsconfig.json",
"lint": "eslint . --ext .ts --ext .mts",
"test:esm": "npm run build-esm && mocha build/esm/test_builds/esm/esm.test.js",
"test:cjs": "npm run build-cjs && mocha build/cjs/test_builds/cjs/cjs.test.js",
"test": "mocha -r ts-node/register ./test/**/*.ts && npm run test:esm && npm run test:cjs"
},
"keywords": [
"uuid",
"uuidv7",
"typeid",
"type-id"
],
"author": "Ong Teck Wu",
"license": "Apache-2.0"
}