From bd2457ccee5f5b8012b7200751bde9a5e4ce11bb Mon Sep 17 00:00:00 2001 From: Nathan Sarang-Walters Date: Mon, 9 Sep 2024 13:20:48 -0700 Subject: [PATCH] Remove separately-built types --- config/tsconfig.types.json | 8 -------- package.json | 4 +--- 2 files changed, 1 insertion(+), 11 deletions(-) delete mode 100644 config/tsconfig.types.json diff --git a/config/tsconfig.types.json b/config/tsconfig.types.json deleted file mode 100644 index 8de87ee..0000000 --- a/config/tsconfig.types.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "../tsconfig", - "compilerOptions": { - "declaration": true /* Generates corresponding '.d.ts' file. */, - "emitDeclarationOnly": true, - "outDir": "../dist/types" /* Redirect output structure to the directory. */ - } -} diff --git a/package.json b/package.json index 6400830..cd68ccb 100644 --- a/package.json +++ b/package.json @@ -9,14 +9,12 @@ } }, "main": "./dist/cjs/index.js", - "types": "dist/types/index.d.js", "scripts": { "prepublishOnly": "pinst --disable", "postpublish": "pinst --enable", - "build": "npm run build:cjs && npm run build:esm && npm run build:types", + "build": "npm run build:cjs && npm run build:esm", "build:cjs": "node tools/cleanup cjs && tsc -p config/tsconfig.cjs.json", "build:esm": "node tools/cleanup esm && tsc -p config/tsconfig.esm.json && echo '{\"type\":\"module\"}' >./dist/esm/package.json", - "build:types": "node tools/cleanup types && tsc -p config/tsconfig.types.json", "clean": "node tools/cleanup", "package": "npm run build && npm pack", "format:fix": "prettier --write .",