generated from thaitype/typescript-npm-boilerplate-esm-cjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
62 lines (62 loc) · 1.96 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
{
"name": "@thaitype/eleventy-plugin-interlink",
"type": "module",
"version": "0.0.5",
"main": "./dist/cjs/index.js",
"module": "./dist/esm/index.js",
"types": "./dist/dts/index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/dts/index.d.ts",
"import": "./dist/esm/index.js",
"default": "./dist/cjs/index.js"
},
"./calculator": {
"types": "./dist/dts/calculator.d.ts",
"import": "./dist/esm/calculator.js",
"default": "./dist/cjs/calculator.js"
}
},
"files": [
"dist",
"README.md",
"src",
"package.json"
],
"scripts": {
"check": "tsc -b tsconfig.json",
"check:watch": "tsc -b tsconfig.json -w",
"prepublishOnly": "bun run build",
"release": "bun run build && release-it",
"format": "prettier --write src",
"build": "bun format && bun build-esm && bun build-cjs && bun build-annotate",
"build-esm": "tsc -b tsconfig.build.json",
"build-cjs": "babel dist/esm --plugins @babel/transform-export-namespace-from --plugins @babel/transform-modules-commonjs --out-dir dist/cjs --source-maps",
"build-annotate": "babel dist --plugins annotate-pure-calls --out-dir dist --source-maps",
"build-esm:watch": "tsc -b tsconfig.build.json -w"
},
"devDependencies": {
"@babel/cli": "^7.24.5",
"@babel/core": "^7.24.5",
"@babel/plugin-transform-export-namespace-from": "^7.24.1",
"@babel/plugin-transform-modules-commonjs": "^7.24.1",
"@type-challenges/utils": "^0.1.1",
"@types/bun": "latest",
"babel-plugin-annotate-pure-calls": "^0.4.0",
"prettier": "^3.4.2",
"release-it": "^17.3.0"
},
"peerDependencies": {
"typescript": "^5.7.2"
},
"publishConfig": {
"access": "public",
"directory": "dist"
},
"repository": {
"type": "git",
"url": "https://github.com/thaitype/eleventy-plugin-obsidian-link.git"
},
"homepage": "https://github.com/thaitype/eleventy-plugin-obsidian-link"
}