Skip to content

Commit a43c5cf

Browse files
Restore support for subpath imports in Node 12.19 and earlier (see #351 (comment)).
1 parent 3092635 commit a43c5cf

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

package.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,16 @@
4949
"types": "./libcjs/*.d.ts",
5050
"default": "./libcjs/*.js"
5151
}
52+
},
53+
"./lib/": {
54+
"import": {
55+
"types": "./libesm/",
56+
"default": "./libesm/"
57+
},
58+
"require": {
59+
"types": "./libcjs/",
60+
"default": "./libcjs/"
61+
}
5262
}
5363
},
5464
"type": "module",
@@ -62,7 +72,7 @@
6272
"check-types": "yarn run-tsd && yarn run-attw",
6373
"test": "nyc yarn _test",
6474
"_test": "yarn build && cross-env NODE_ENV=test yarn run-mocha",
65-
"run-attw": "yarn attw --pack",
75+
"run-attw": "yarn attw --pack --entrypoints . && yarn attw --pack --entrypoints lib/diff/word.js --profile node16",
6676
"run-tsd": "yarn tsd --typings libesm/ && yarn tsd --files test-d/",
6777
"run-rollup": "rollup -c rollup.config.mjs",
6878
"run-uglify": "uglifyjs dist/diff.js -c -o dist/diff.min.js",

0 commit comments

Comments
 (0)