Skip to content

Commit

Permalink
only emit CJS
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahZinsmeister committed Feb 28, 2022
1 parent 43c922a commit e571377
Show file tree
Hide file tree
Showing 38 changed files with 73 additions and 224 deletions.
15 changes: 5 additions & 10 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,13 @@
"files": [
"dist/*"
],
"exports": {
"types": "./dist/esm/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.js"
},
"types": "./dist/esm/index.d.ts",
"module": "./dist/esm/index.mjs",
"main": "./dist/cjs/index.js",
"type": "commonjs",
"types": "./dist/index.d.ts",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"scripts": {
"prebuild": "rm -rf dist",
"build": "tsc && tsc --project tsconfig.cjs.json",
"postbuild": "mv dist/esm/index.js dist/esm/index.mjs",
"build": "tsc",
"start": "tsc --watch"
},
"dependencies": {
Expand Down
7 changes: 0 additions & 7 deletions packages/core/tsconfig.cjs.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"extends": "../../tsconfig.json",
"include": ["./src"],
"compilerOptions": {
"outDir": "./dist/esm"
"outDir": "./dist"
}
}
15 changes: 5 additions & 10 deletions packages/eip1193/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,13 @@
"files": [
"dist/*"
],
"exports": {
"types": "./dist/esm/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.js"
},
"types": "./dist/esm/index.d.ts",
"module": "./dist/esm/index.mjs",
"main": "./dist/cjs/index.js",
"type": "commonjs",
"types": "./dist/index.d.ts",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"scripts": {
"prebuild": "rm -rf dist",
"build": "tsc && tsc --project tsconfig.cjs.json",
"postbuild": "mv dist/esm/index.js dist/esm/index.mjs",
"build": "tsc",
"start": "tsc --watch"
},
"dependencies": {
Expand Down
7 changes: 0 additions & 7 deletions packages/eip1193/tsconfig.cjs.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/eip1193/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"extends": "../../tsconfig.json",
"include": ["./src"],
"compilerOptions": {
"outDir": "./dist/esm"
"outDir": "./dist"
}
}
15 changes: 5 additions & 10 deletions packages/empty/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,13 @@
"files": [
"dist/*"
],
"exports": {
"types": "./dist/esm/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.js"
},
"types": "./dist/esm/index.d.ts",
"module": "./dist/esm/index.mjs",
"main": "./dist/cjs/index.js",
"type": "commonjs",
"types": "./dist/index.d.ts",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"scripts": {
"prebuild": "rm -rf dist",
"build": "tsc && tsc --project tsconfig.cjs.json",
"postbuild": "mv dist/esm/index.js dist/esm/index.mjs",
"build": "tsc",
"start": "tsc --watch"
},
"dependencies": {
Expand Down
7 changes: 0 additions & 7 deletions packages/empty/tsconfig.cjs.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/empty/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"extends": "../../tsconfig.json",
"include": ["./src"],
"compilerOptions": {
"outDir": "./dist/esm"
"outDir": "./dist"
}
}
15 changes: 5 additions & 10 deletions packages/frame/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,13 @@
"files": [
"dist/*"
],
"exports": {
"types": "./dist/esm/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.js"
},
"types": "./dist/esm/index.d.ts",
"module": "./dist/esm/index.mjs",
"main": "./dist/cjs/index.js",
"type": "commonjs",
"types": "./dist/index.d.ts",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"scripts": {
"prebuild": "rm -rf dist",
"build": "tsc && tsc --project tsconfig.cjs.json",
"postbuild": "mv dist/esm/index.js dist/esm/index.mjs",
"build": "tsc",
"start": "tsc --watch"
},
"dependencies": {
Expand Down
7 changes: 0 additions & 7 deletions packages/frame/tsconfig.cjs.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/frame/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"extends": "../../tsconfig.json",
"include": ["./src"],
"compilerOptions": {
"outDir": "./dist/esm"
"outDir": "./dist"
}
}
15 changes: 5 additions & 10 deletions packages/magic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,13 @@
"files": [
"dist/*"
],
"exports": {
"types": "./dist/esm/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.js"
},
"types": "./dist/esm/index.d.ts",
"module": "./dist/esm/index.mjs",
"main": "./dist/cjs/index.js",
"type": "commonjs",
"types": "./dist/index.d.ts",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"scripts": {
"prebuild": "rm -rf dist",
"build": "tsc && tsc --project tsconfig.cjs.json",
"postbuild": "mv dist/esm/index.js dist/esm/index.mjs",
"build": "tsc",
"start": "tsc --watch"
},
"dependencies": {
Expand Down
7 changes: 0 additions & 7 deletions packages/magic/tsconfig.cjs.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/magic/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"extends": "../../tsconfig.json",
"include": ["./src"],
"compilerOptions": {
"outDir": "./dist/esm"
"outDir": "./dist"
}
}
15 changes: 5 additions & 10 deletions packages/metamask/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,13 @@
"files": [
"dist/*"
],
"exports": {
"types": "./dist/esm/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.js"
},
"types": "./dist/esm/index.d.ts",
"module": "./dist/esm/index.mjs",
"main": "./dist/cjs/index.js",
"type": "commonjs",
"types": "./dist/index.d.ts",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"scripts": {
"prebuild": "rm -rf dist",
"build": "tsc && tsc --project tsconfig.cjs.json",
"postbuild": "mv dist/esm/index.js dist/esm/index.mjs",
"build": "tsc",
"start": "tsc --watch"
},
"dependencies": {
Expand Down
7 changes: 0 additions & 7 deletions packages/metamask/tsconfig.cjs.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/metamask/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"extends": "../../tsconfig.json",
"include": ["./src"],
"compilerOptions": {
"outDir": "./dist/esm"
"outDir": "./dist"
}
}
15 changes: 5 additions & 10 deletions packages/network/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,13 @@
"files": [
"dist/*"
],
"exports": {
"types": "./dist/esm/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.js"
},
"types": "./dist/esm/index.d.ts",
"module": "./dist/esm/index.mjs",
"main": "./dist/cjs/index.js",
"type": "commonjs",
"types": "./dist/index.d.ts",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"scripts": {
"prebuild": "rm -rf dist",
"build": "tsc && tsc --project tsconfig.cjs.json",
"postbuild": "mv dist/esm/index.js dist/esm/index.mjs",
"build": "tsc",
"start": "tsc --watch"
},
"dependencies": {
Expand Down
7 changes: 0 additions & 7 deletions packages/network/tsconfig.cjs.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/network/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"extends": "../../tsconfig.json",
"include": ["./src"],
"compilerOptions": {
"outDir": "./dist/esm"
"outDir": "./dist"
}
}
15 changes: 5 additions & 10 deletions packages/store/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,13 @@
"files": [
"dist/*"
],
"exports": {
"types": "./dist/esm/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.js"
},
"types": "./dist/esm/index.d.ts",
"module": "./dist/esm/index.mjs",
"main": "./dist/cjs/index.js",
"type": "commonjs",
"types": "./dist/index.d.ts",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"scripts": {
"prebuild": "rm -rf dist",
"build": "tsc && tsc --project tsconfig.cjs.json",
"postbuild": "mv dist/esm/index.js dist/esm/index.mjs",
"build": "tsc",
"start": "tsc --watch"
},
"dependencies": {
Expand Down
7 changes: 0 additions & 7 deletions packages/store/tsconfig.cjs.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/store/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"extends": "../../tsconfig.json",
"include": ["./src"],
"compilerOptions": {
"outDir": "./dist/esm"
"outDir": "./dist"
}
}
15 changes: 5 additions & 10 deletions packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,13 @@
"files": [
"dist/*"
],
"exports": {
"types": "./dist/esm/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.js"
},
"types": "./dist/esm/index.d.ts",
"module": "./dist/esm/index.mjs",
"main": "./dist/cjs/index.js",
"type": "commonjs",
"types": "./dist/index.d.ts",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"scripts": {
"prebuild": "rm -rf dist",
"build": "tsc && tsc --project tsconfig.cjs.json",
"postbuild": "mv dist/esm/index.js dist/esm/index.mjs",
"build": "tsc",
"start": "tsc --watch"
},
"dependencies": {
Expand Down
7 changes: 0 additions & 7 deletions packages/types/tsconfig.cjs.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/types/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"extends": "../../tsconfig.json",
"include": ["./src"],
"compilerOptions": {
"outDir": "./dist/esm"
"outDir": "./dist"
}
}
15 changes: 5 additions & 10 deletions packages/url/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,13 @@
"files": [
"dist/*"
],
"exports": {
"types": "./dist/esm/index.d.ts",
"import": "./dist/esm/index.mjs",
"require": "./dist/cjs/index.js"
},
"types": "./dist/esm/index.d.ts",
"module": "./dist/esm/index.mjs",
"main": "./dist/cjs/index.js",
"type": "commonjs",
"types": "./dist/index.d.ts",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"scripts": {
"prebuild": "rm -rf dist",
"build": "tsc && tsc --project tsconfig.cjs.json",
"postbuild": "mv dist/esm/index.js dist/esm/index.mjs",
"build": "tsc",
"start": "tsc --watch"
},
"dependencies": {
Expand Down
7 changes: 0 additions & 7 deletions packages/url/tsconfig.cjs.json

This file was deleted.

2 changes: 1 addition & 1 deletion packages/url/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"extends": "../../tsconfig.json",
"include": ["./src"],
"compilerOptions": {
"outDir": "./dist/esm"
"outDir": "./dist"
}
}
Loading

0 comments on commit e571377

Please sign in to comment.