From 5f09a7c062ea59f371b96196c4552bd8f3fd6ed9 Mon Sep 17 00:00:00 2001 From: Simon McAllister <56324559+simonmcallister0210@users.noreply.github.com> Date: Tue, 17 Dec 2024 23:32:49 +0000 Subject: [PATCH] fix: for users using NodeNext TS Module (#50) * output single type declaration file * rm pre-release label from package version * revert patch number too --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5d41506..a574efe 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "build": "npm run build:cjs && npm run build:esm && npm run build:types", "build:cjs": "esbuild src/index.ts --bundle --packages=external --minify --format=cjs --outfile=dist/cjs/index.js && echo '{ \"type\": \"commonjs\" }' > dist/cjs/package.json", "build:esm": "esbuild src/index.ts --bundle --packages=external --minify --format=esm --outfile=dist/esm/index.js && echo '{ \"type\": \"module\" }' > dist/esm/package.json", - "build:types": "tsc --emitDeclarationOnly --declaration src/index.ts --esModuleInterop --outDir dist/types", + "build:types": "tsc --emitDeclarationOnly --declaration src/index.ts --esModuleInterop --outFile dist/types/index.d.ts", "format": "npm run format:eslint && npm run format:prettier", "format:eslint": "eslint -c .eslintrc.cjs --fix src/**", "format:prettier": "prettier -c .prettierrc.cjs --write src/**",