/
package.json
54 lines (54 loc) · 1.45 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
{
"name": "@pyk/typescript-esm-cjs",
"version": "1.0.0",
"description": "Example of ECMAScript and CommonJS library in TypeScript",
"main": "dist/cjs/index.js",
"source": "src/index.ts",
"types": "dist/cjs/index.d.ts",
"license": "MIT",
"homepage": "https://pyk.sh/tutorials/how-to-create-ecmascript-and-commonjs-library-with-typescript/",
"repository": {
"type": "git",
"url": "git+https://github.com/pyk/typescript-esm-cjs.git"
},
"bugs": {
"url": "https://github.com/pyk/typescript-esm-cjs/issues"
},
"author": {
"name": "pyk",
"email": "gm@pyk.sh",
"url": "https://github.com/pyk"
},
"keywords": [
"ecmascript",
"esm",
"commonjs",
"cjs",
"typescript"
],
"exports": {
".": {
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
},
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
}
}
},
"scripts": {
"build:esm": "tsc -p tsconfig.esm.json",
"build:cjs": "tsc -p tsconfig.cjs.json"
},
"prettier": "@pyk/prettier-config",
"devDependencies": {
"@pyk/prettier-config": "1.0.1",
"prettier": "2.7.1",
"typescript": "4.8.4"
},
"publishConfig": {
"access": "public"
}
}