From 58a7c6c6236e40f1f096ffc6fc8dfb4db929fd58 Mon Sep 17 00:00:00 2001 From: Artem Zakharchenko Date: Thu, 18 Jan 2024 13:27:25 +0100 Subject: [PATCH] chore: keep "dist" as build directory --- packages/msw-addon/package.json | 10 +++++----- packages/msw-addon/tsup.config.ts | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/msw-addon/package.json b/packages/msw-addon/package.json index aaf09d7..ff0bdaa 100644 --- a/packages/msw-addon/package.json +++ b/packages/msw-addon/package.json @@ -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" diff --git a/packages/msw-addon/tsup.config.ts b/packages/msw-addon/tsup.config.ts index bf727a0..b11a454 100644 --- a/packages/msw-addon/tsup.config.ts +++ b/packages/msw-addon/tsup.config.ts @@ -4,7 +4,7 @@ const browser = defineConfig({ entry: { 'index.browser': './src/index.new.ts', }, - outDir: './build', + outDir: './dist', target: ['chrome112'], format: 'cjs', esbuildOptions(options) { @@ -20,7 +20,7 @@ const node = defineConfig({ entry: { 'index.node': './src/index.new.ts', }, - outDir: './build', + outDir: './dist', target: 'node18', format: 'cjs', esbuildOptions(options) { @@ -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) {