Skip to content

Commit f5e0770

Browse files
committed
exports
1 parent ab91b05 commit f5e0770

File tree

1 file changed

+31
-2
lines changed

1 file changed

+31
-2
lines changed

package.json

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,45 @@
11
{
22
"name": "async-context-tc39",
3-
"version": "1.0.4",
3+
"version": "1.0.6",
44
"description": "AsyncContext (implementation for TC39)",
55
"type": "module",
6-
"main": "index.js",
76
"scripts": {
87
"compile": "rm -rf dist && tsc -p tsconfig.esm.json && tsc -p tsconfig.cjs.json && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
98
"compile:esm": "tsc -p tsconfig.esm.json",
109
"compile:cjs": "tsc -p tsconfig.cjs.json && echo '{\"type\":\"commonjs\"}' > dist/cjs/package.json",
1110
"lint": "eslint .",
1211
"test": "vitest run"
1312
},
13+
"source": "./src/index.ts",
14+
"main": "./dist/index.js",
15+
"types": "./dist/index.d.ts",
16+
"exports": {
17+
"./package.json": "./package.json",
18+
".": {
19+
"require": {
20+
"types": "./dist/cjs/index.d.ts",
21+
"default": "./dist/cjs/index.js"
22+
},
23+
"default": {
24+
"types": "./dist/index.d.ts",
25+
"default": "./dist/index.js"
26+
}
27+
},
28+
"./*": {
29+
"require": {
30+
"types": "./dist/cjs/*.d.ts",
31+
"default": "./dist/cjs/*.js"
32+
},
33+
"default": {
34+
"types": "./dist/*.d.ts",
35+
"default": "./dist/*.js"
36+
}
37+
}
38+
},
39+
"files": [
40+
"src",
41+
"dist"
42+
],
1443
"author": "Artem Elkin",
1544
"repository": {
1645
"type": "git",

0 commit comments

Comments
 (0)