Skip to content

Commit

Permalink
build types
Browse files Browse the repository at this point in the history
  • Loading branch information
nichoth committed Jun 14, 2024
1 parent c25d0e5 commit cc1c832
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion jsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"extends": "./_types/base-tsconfig.json",
"compilerOptions": {
"module": "nodenext",
"module": "NodeNext",
"outDir": "dist",
"noImplicitAny": false,
"moduleResolution": "Nodenext",
"baseUrl": "./",
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
"main": "dist/index.js",
"type": "module",
"scripts": {
"build": "mkdir -p ./dist && rm -rf ./dist/* && npm run build-cjs && npm run build-esm",
"build": "mkdir -p ./dist && rm -rf ./dist/* && npm run build-cjs && npm run build-esm && npm run build-types",
"build-cjs": "esbuild ./index.js --bundle --format=cjs --keep-names --outdir=./dist --out-extension:.js=.cjs",
"build-esm": "esbuild index.js --bundle --format=esm --keep-names --outdir=./dist",
"test": "npm run build && node ./test/index.js | tap-arc",
"build-types": "tsc ./index.js --declaration --emitDeclarationOnly --allowJs --outDir dist",
"coverage": "type-coverage",
"report": "typescript-coverage-report && open coverage-ts/index.html",
"vendor": "cp node_modules/fast-deep-equal/index.js ./fast-deep-equal.js; sed -i '1s;^;// Copied from fast-deep-equal@3.1.1.\\n// @ts-nocheck\\n;' fast-deep-equal.js",
Expand Down Expand Up @@ -59,7 +60,7 @@
"tap-arc": "^1.2.2",
"tiny-benchy": "1.0.1",
"type-coverage": "2.27.1",
"typescript": "5.3.3",
"typescript": "5.4.5",
"typescript-coverage-report": "^1.0.0"
},
"tsdocstandard": {
Expand Down

0 comments on commit cc1c832

Please sign in to comment.