Skip to content

Commit

Permalink
fix: remove "esm" build target (#1263)
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito committed May 30, 2022
1 parent 2176577 commit 61a755a
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 30 deletions.
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -3,7 +3,6 @@
"version": "0.41.1",
"description": "Seamless REST/GraphQL API mocking library for browser and Node.js.",
"main": "./lib/index.js",
"module": "./lib/esm/index.js",
"types": "./lib/index.d.ts",
"bin": {
"msw": "cli/index.js"
Expand Down Expand Up @@ -81,6 +80,7 @@
"is-node-process": "^1.0.1",
"js-levenshtein": "^1.1.6",
"node-fetch": "^2.6.7",
"outvariant": "^1.3.0",
"path-to-regexp": "^6.2.0",
"statuses": "^2.0.0",
"strict-event-emitter": "^0.2.0",
Expand Down Expand Up @@ -116,7 +116,6 @@
"jest": "26",
"json-bigint": "^1.0.0",
"lint-staged": "^11.0.1",
"outvariant": "^1.2.1",
"page-with": "^0.5.0",
"prettier": "^2.3.2",
"regenerator-runtime": "^0.13.9",
Expand Down
9 changes: 0 additions & 9 deletions test/msw-api/distribution/esm.mocks.ts

This file was deleted.

18 changes: 0 additions & 18 deletions test/msw-api/distribution/esm.test.ts

This file was deleted.

2 changes: 1 addition & 1 deletion tsup.config.ts
Expand Up @@ -11,7 +11,7 @@ export default defineConfig([
name: 'main',
entry: ['./src/index.ts'],
outDir: './lib',
format: ['esm', 'cjs'],
format: ['cjs'],
legacyOutput: true,
sourcemap: true,
clean: true,
Expand Down

0 comments on commit 61a755a

Please sign in to comment.