Skip to content

Commit

Permalink
chore: keep "dist" as build directory
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito committed Jan 18, 2024
1 parent 676bec1 commit 58a7c6c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions packages/msw-addon/package.json
Expand Up @@ -2,15 +2,15 @@
"name": "msw-storybook-addon",
"description": "Mock API requests in Storybook with Mock Service Worker.",
"version": "1.6.0",
"main": "./build/index.browser.js",
"main": "./dist/index.browser.js",
"exports": {
"browser": "./build/index.browser.js",
"react-native": "./build/index.react-native.js",
"node": "./build/index.node.js"
"browser": "./dist/index.browser.js",
"react-native": "./dist/index.react-native.js",
"node": "./dist/index.node.js"
},
"scripts": {
"dev": "yarn build --watch",
"clean": "rimraf ./build",
"clean": "rimraf ./dist",
"build": "tsup",
"prepublishOnly": "yarn clean && yarn build",
"release": "auto shipit"
Expand Down
6 changes: 3 additions & 3 deletions packages/msw-addon/tsup.config.ts
Expand Up @@ -4,7 +4,7 @@ const browser = defineConfig({
entry: {
'index.browser': './src/index.new.ts',
},
outDir: './build',
outDir: './dist',
target: ['chrome112'],
format: 'cjs',
esbuildOptions(options) {
Expand All @@ -20,7 +20,7 @@ const node = defineConfig({
entry: {
'index.node': './src/index.new.ts',
},
outDir: './build',
outDir: './dist',
target: 'node18',
format: 'cjs',
esbuildOptions(options) {
Expand All @@ -36,7 +36,7 @@ const reactNative = defineConfig({
entry: {
'index.react-native': './src/index.new.ts',
},
outDir: './build',
outDir: './dist',
target: 'esnext',
format: 'cjs',
esbuildOptions(options) {
Expand Down

0 comments on commit 58a7c6c

Please sign in to comment.