diff --git a/packages/core/package.json b/packages/core/package.json index e3d887568..1e5ebd882 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -3,14 +3,11 @@ "version": "0.0.0", "type": "module", "exports": { - ".": { - "import": { - "types": "./types/index.d.ts", - "default": "./dist/index.js" - } - } + "types": "./types/index.d.ts", + "default": "./dist/index.js" }, "main": "./dist/index.js", + "types": "./types/index.d.ts", "bin": "./dist/cli/index.js", "files": [ "dist", diff --git a/packages/core/tsup.config.ts b/packages/core/tsup.config.ts index 4a1912349..44866e834 100644 --- a/packages/core/tsup.config.ts +++ b/packages/core/tsup.config.ts @@ -6,6 +6,7 @@ export default defineConfig({ outDir: 'dist', format: 'esm', splitting: false, + treeshake: true, sourcemap: true, external: ['playwright-core'] }) diff --git a/packages/fixtures/package.json b/packages/fixtures/package.json index 077e31fb5..e9c6525a6 100644 --- a/packages/fixtures/package.json +++ b/packages/fixtures/package.json @@ -3,14 +3,11 @@ "version": "0.0.0", "type": "module", "exports": { - ".": { - "import": { - "types": "./types/index.d.ts", - "default": "./dist/index.js" - } - } + "types": "./types/index.d.ts", + "default": "./dist/index.js" }, "main": "./dist/index.js", + "types": "./types/index.d.ts", "files": [ "dist", "src", diff --git a/packages/fixtures/tsup.config.ts b/packages/fixtures/tsup.config.ts index 18257aed6..28a431a7a 100644 --- a/packages/fixtures/tsup.config.ts +++ b/packages/fixtures/tsup.config.ts @@ -6,6 +6,7 @@ export default defineConfig({ outDir: 'dist', format: 'esm', splitting: false, + treeshake: true, sourcemap: true, external: ['@playwright/test'] }) diff --git a/release/package.json b/release/package.json index 4ec435472..7a1e4a3c6 100644 --- a/release/package.json +++ b/release/package.json @@ -3,14 +3,11 @@ "version": "3.0.0", "type": "module", "exports": { - ".": { - "import": { - "types": "./types/index.d.ts", - "default": "./dist/index.js" - } - } + "types": "./types/index.d.ts", + "default": "./dist/index.js" }, "main": "./dist/index.js", + "types": "./types/index.d.ts", "bin": "./dist/cli.js", "files": [ "dist", diff --git a/release/tsup.config.ts b/release/tsup.config.ts index cae710399..03e5ac0fe 100644 --- a/release/tsup.config.ts +++ b/release/tsup.config.ts @@ -6,5 +6,6 @@ export default defineConfig({ outDir: 'dist', format: 'esm', splitting: false, + treeshake: true, sourcemap: false }) diff --git a/wallets/metamask/package.json b/wallets/metamask/package.json index f25453a50..554b43dd4 100644 --- a/wallets/metamask/package.json +++ b/wallets/metamask/package.json @@ -3,14 +3,11 @@ "version": "0.0.0", "type": "module", "exports": { - ".": { - "import": { - "types": "./types/index.d.ts", - "default": "./dist/index.js" - } - } + "types": "./types/index.d.ts", + "default": "./dist/index.js" }, "main": "./dist/index.js", + "types": "./types/index.d.ts", "files": [ "dist", "src", diff --git a/wallets/metamask/tsup.config.ts b/wallets/metamask/tsup.config.ts index 29fde94eb..63ed05775 100644 --- a/wallets/metamask/tsup.config.ts +++ b/wallets/metamask/tsup.config.ts @@ -6,6 +6,7 @@ export default defineConfig({ outDir: 'dist', format: 'esm', splitting: false, + treeshake: true, sourcemap: true, external: ['@playwright/test'] })