-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
50 lines (50 loc) · 1.46 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
{
"name": "typescript-library-template",
"description": "Typescript Library Template for Node and Browser",
"version": "1.0.0",
"scripts": {
"build:cjs": "tsc --project tsconfig.cjs.json && echo > ./dist/cjs/package.json '{\"type\":\"commonjs\"}'",
"build:esm": "tsc --project tsconfig.esm.json && echo > ./dist/esm/package.json '{\"type\":\"module\"}'",
"build:types": "tsc --project tsconfig.types.json --declarationDir ./dist/types",
"build:clean": "rm -rf ./dist",
"build": "npm run build:clean && npm run build:cjs && npm run build:esm && npm run build:types",
"typecheck": "tsc --noEmit"
},
"type": "module",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/types/index.d.ts",
"typings": "./dist/types/index.d.ts",
"files": [
"dist",
"!dist/**/*.tsbuildinfo",
"src/**/*.ts"
],
"exports": {
"./*": {
"types": "./build/types/*.d.ts",
"import": "./build/esm/*.js",
"default": "./build/cjs/*.js"
},
"./package.json": "./package.json"
},
"repository": "sinodevi/typescript-library-template",
"author": "Sinodevi <[email protected]> (https://sinodevi.com)",
"license": "SEE LICENSE IN <LICENSE>",
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/sinodevi"
}
],
"keywords": [
"library",
"template",
"typescript",
"nodejs",
"browser"
],
"devDependencies": {
"typescript": "^5.0.4"
}
}