-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
99 lines (99 loc) · 2.65 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
{
"name": "@khatastroffik/one-ts-for-all",
"version": "1.0.0",
"description": "A PoC demonstrating a Typescript 'library' project with multiple targets (CJS, EMS, CLI...)",
"keywords": [
"TS",
"Typescript",
"ESM",
"ECMAScript",
"Module",
"CJS",
"CommonJS",
"CLI",
"bin",
"application",
"browser",
"script",
"node",
"nodejs",
"blueprint",
"POC",
"dojo",
"TSC",
"jest",
"multiple targets"
],
"author": {
"name": "Loïs Bégué",
"url": "https://www.khatastroffik.net"
},
"repository": {
"url": "https://github.com/khatastroffik/one-ts-for-all.git",
"type": "git"
},
"bugs": {
"url": "https://github.com/khatastroffik/one-ts-for-all/issues"
},
"homepage": "https://www.khatastroffik.net",
"license": "MIT",
"engines": {
"node": ">=13.x",
"npm": ">=6.x"
},
"main": "lib/ts/library.ts",
"types": "lib/ts/library.d.ts",
"module": "lib/esm/library.js",
"browser": "lib/esm/library.js",
"node": "lib/cjs/library.js",
"bin": {
"ts4all": "bin/application.js"
},
"files": [
"/lib",
"/bin"
],
"directories": {
"doc": "doc",
"example": "examples"
},
"scripts": {
"test": "jest --watch --onlyChanged",
"test:prod": "jest --silent --all",
"coverage": "jest --all --coverage",
"start": "ts-node --project tsconfig.common.json src/application.ts -d",
"node": "node bin/application.js",
"watch": "tsc -p tsconfig.types.json --watch",
"build:bin": "tsc -p tsconfig.bin.json",
"build:cjs": "tsc -p tsconfig.cjs.json",
"build:esm": "tsc -p tsconfig.esm.json",
"build:types": "tsc -p tsconfig.types.json",
"build": "npm run build:types && npm run build:bin && npm run build:cjs && npm run build:esm",
"changelog": "npx generate-changelog",
"prod": "npm run cleanup && npm run build && npm run copyts && npm run test:prod",
"checkpkg": "pkgfiles",
"prepublishOnly": "npm run prod",
"local:publish": "npm run prod && npm link",
"local:unpublish": "npm unlink && npm run cleanup:nodemodules && npm install",
"cleanup": "rimraf ./lib ./bin ./coverage",
"cleanup:nodemodules": "npx rimraf ./node_modules",
"copyts": "copyfiles -u 2 src/lib/**/* -e **/*.spec.ts lib/ts"
},
"devDependencies": {
"@types/jest": "^25.2.3",
"@types/node": "^14.0.11",
"copyfiles": "^2.3.0",
"jest": "^26.0.1",
"jest-extended": "^0.11.5",
"jest-mock-process": "^1.4.0",
"pkgfiles": "^2.3.2",
"rimraf": "^3.0.2",
"ts-jest": "^26.1.0",
"ts-node": "^8.10.2",
"typescript": "^3.9.5"
},
"dependencies": {
"chalk": "^4.0.0",
"tslib": "^2.0.0"
}
}