From 7d495c93f0fdba9268d1799541ac7123ac003231 Mon Sep 17 00:00:00 2001 From: Yurii Brusentsov Date: Mon, 5 Feb 2024 00:26:14 +0200 Subject: [PATCH] fix(build): change build folder to dist, fix repo link --- package.json | 22 +++++++++++----------- tsconfig.json | 2 +- tsup.config.ts | 3 +-- 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index 508ce78..384ebaa 100644 --- a/package.json +++ b/package.json @@ -22,25 +22,25 @@ "exports": { ".": { "import": { - "types": "./build/index.d.mts", - "default": "./build/index.mjs" + "types": "./dist/index.d.ts", + "default": "./dist/index.mjs" }, "require": { - "types": "./build/index.d.ts", - "default": "./build/index.js" + "types": "./dist/index.d.ts", + "default": "./dist/index.js" } }, - "./style.css": "./build/index.css" + "./style.css": "./dist/index.css" }, - "types": "./build/index.d.ts", - "main": "./build/index.js", - "module": "./build/index.mjs", + "types": "./dist/index.d.ts", + "main": "./dist/index.js", + "module": "./dist/index.mjs", "files": [ - "build/**/*" + "dist/**/*" ], "scripts": { "cm": "cz", - "build": "tsup", + "build": "tsup && tsc --emitDeclarationOnly", "test": "jest", "test-storybook": "test-storybook", "test:coverage": "jest --coverage", @@ -64,7 +64,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/goveo/react-international-phone.git" + "url": "git+https://github.com/goveo/react-international-phone.git" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0 || ^18.0.0" diff --git a/tsconfig.json b/tsconfig.json index 26aee78..0714a92 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { "compilerOptions": { - "outDir": "build", + "outDir": "dist", "target": "es5", "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, diff --git a/tsup.config.ts b/tsup.config.ts index bb51857..27a892e 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -7,6 +7,5 @@ export default defineConfig({ clean: true, minify: true, format: ['esm', 'cjs'], - outDir: 'build', - dts: true, + outDir: 'dist', });