Skip to content

Commit

Permalink
Merge pull request #152 from goveo/development
Browse files Browse the repository at this point in the history
[Build] Change build folder to dist
  • Loading branch information
goveo authored Feb 4, 2024
2 parents 63f9caa + 7d495c9 commit 6e0b19f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"outDir": "build",
"outDir": "dist",
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
Expand Down
3 changes: 1 addition & 2 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ export default defineConfig({
clean: true,
minify: true,
format: ['esm', 'cjs'],
outDir: 'build',
dts: true,
outDir: 'dist',
});

0 comments on commit 6e0b19f

Please sign in to comment.