Skip to content

Commit

Permalink
Reinstate install from Git (mdn#21656)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddbeck authored Dec 28, 2023
1 parent 0a3791e commit 0209395
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
.prettierrc
.vscode
build
!/build/data.json
!/build/import.d.mts
!/build/legacynode.mjs
!/build/require.d.ts
!/build/types.d.ts
docs
test
schemas
Expand Down
19 changes: 18 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,23 @@
"description": "Browser compatibility data provided by MDN Web Docs",
"main": "index.ts",
"type": "module",
"exports": {
".": {
"require": {
"types": "./build/require.d.ts",
"default": "./build/data.json"
},
"import": {
"types": "./build/import.d.mts",
"default": "./build/data.json"
}
},
"./forLegacyNode": {
"types": "./build/import.d.mts",
"default": "./build/legacynode.mjs"
}
},
"types": "./build/require.d.ts",
"engines": {
"node": ">=18.0.0"
},
Expand Down Expand Up @@ -75,7 +92,7 @@
"yargs": "~17.7.0"
},
"scripts": {
"prepare": "husky install && npm run gentypes",
"prepare": "husky install && npm run gentypes && npm run build",
"diff": "node --loader=ts-node/esm --no-warnings=ExperimentalWarning scripts/diff.ts",
"unittest": "NODE_ENV=test c8 mocha index.test.ts --recursive \"{,!(node_modules)/**}/*.test.ts\"",
"coverage": "c8 report -r lcov && open-cli coverage/lcov-report/index.html",
Expand Down

0 comments on commit 0209395

Please sign in to comment.