From d5f2d2de97f768bd94b5060342512dc9720440bf Mon Sep 17 00:00:00 2001 From: Hayata Suenaga Date: Wed, 2 Aug 2023 16:00:34 -0700 Subject: [PATCH] fix: build command --- package.json | 3 +-- tsconfig.json | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/package.json b/package.json index 7838346..e727c05 100644 --- a/package.json +++ b/package.json @@ -8,10 +8,9 @@ "src" ], "scripts": { - "build": "rm -rf dist && npm run ts:declarations && npx babel src --out-dir dist --extensions '.ts,.tsx'", + "build": "rm -rf dist && npx tsc --emitDeclarationOnly && npx babel src --out-dir dist --extensions '.ts,.tsx'", "lint": "eslint src --fix", "ts": "npx tsc --noEmit", - "ts:declarations": "npx tsc --emitDeclarationOnly", "prettier": "prettier --write .", "prettier-watch": "onchange \"**/*.js\" -- prettier --write --ignore-unknown {{changed}}", "test": "echo \"Error: no test specified\" && exit 1" diff --git a/tsconfig.json b/tsconfig.json index f620948..f6d38ab 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,7 +8,6 @@ "declaration": true /* Generate .d.ts files from TypeScript and JavaScript files in your project. */, "declarationMap": true /* Create sourcemaps for d.ts files. */, "outDir": "./dist" /* Specify an output folder for all emitted files. */, - "noEmit": true /* Disable emitting files from a compilation. */, "isolatedModules": true /* Ensure that each file can be safely transpiled without relying on other imports. */, "allowSyntheticDefaultImports": true /* Allow 'import x from y' when a module doesn't have a default export. */, "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,