Skip to content

Commit

Permalink
Replace ts-up with ts-bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
MajorLift committed May 21, 2024
1 parent 7d8a2e1 commit dfb1beb
Show file tree
Hide file tree
Showing 4 changed files with 74 additions and 358 deletions.
34 changes: 25 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,40 @@
"type": "git",
"url": "https://github.com/MetaMask/superstruct.git"
},
"type": "module",
"license": "MIT",
"sideEffects": false,
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js",
"types": "./dist/types/index.d.ts"
"import": {
"types": "./dist/types/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/types/index.d.cts",
"default": "./dist/index.cjs"
}
},
"./node": {
"import": {
"types": "./dist/types/node.d.mts",
"default": "./dist/node.mjs"
},
"require": {
"types": "./dist/types/node.d.cts",
"default": "./dist/node.cjs"
}
},
"./package.json": "./package.json"
},
"main": "./dist/index.js",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/types/index.d.ts",
"types": "./dist/types/index.d.cts",
"files": [
"dist"
],
"scripts": {
"build": "tsup --clean && yarn build:types",
"build": "ts-bridge --project tsconfig.json --clean && yarn build:types",
"build:docs": "typedoc",
"build:types": "tsc --project tsconfig.build.json",
"lint": "yarn lint:eslint && yarn lint:misc --check && yarn lint:dependencies --check && yarn lint:changelog",
Expand All @@ -78,6 +94,8 @@
"@metamask/eslint-config-jest": "^12.1.0",
"@metamask/eslint-config-nodejs": "^12.1.0",
"@metamask/eslint-config-typescript": "^12.1.0",
"@ts-bridge/cli": "^0.1.2",
"@ts-bridge/shims": "^0.1.1",
"@types/expect": "^24.3.0",
"@types/lodash": "^4.14.144",
"@types/lodash-es": "^4.17.12",
Expand All @@ -100,7 +118,6 @@
"lodash-es": "^4.17.21",
"prettier": "^2.7.1",
"prettier-plugin-packagejson": "^2.3.0",
"tsup": "patch:tsup@npm%3A8.0.2#~/.yarn/patches/tsup-npm-8.0.2-86e40f68a7.patch",
"typedoc": "^0.25.9",
"typescript": "~4.8.4",
"vitest": "^1.2.2"
Expand All @@ -115,8 +132,7 @@
},
"lavamoat": {
"allowScripts": {
"vitest>vite>esbuild": true,
"tsup>esbuild": true
"vitest>vite>esbuild": true
}
}
}
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"lib": ["ES2020"],
"module": "CommonJS",
"moduleResolution": "node",
"noEmit": true,
"noErrorTruncation": true,
"noUncheckedIndexedAccess": true,
"skipLibCheck": true,
Expand Down
35 changes: 0 additions & 35 deletions tsup.config.ts

This file was deleted.

Loading

0 comments on commit dfb1beb

Please sign in to comment.