-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use ts-bridge
as build tool, set moduleResolution
to NodeNext
#18
Changes from 7 commits
b1e3796
c6a9d0c
4970664
5f179c1
5101126
e69e436
3bfe041
6c4e6cd
220fe62
61ad8c4
dd997d2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,24 +43,29 @@ | |
}, | ||
"license": "MIT", | ||
"sideEffects": false, | ||
"type": "module", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need to make this an ESM package? I think that using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reverted here: 6c4e6cd |
||
"exports": { | ||
".": { | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.js", | ||
"types": "./dist/types/index.d.ts" | ||
"import": { | ||
"types": "./dist/index.d.mts", | ||
"default": "./dist/index.mjs" | ||
}, | ||
"require": { | ||
"types": "./dist/index.d.cts", | ||
"default": "./dist/index.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/index.d.cts", | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"build": "tsup --clean && yarn build:types", | ||
"build": "ts-bridge --project tsconfig.build.json --clean", | ||
"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", | ||
"lint:changelog": "auto-changelog validate --prettier", | ||
"lint:dependencies": "depcheck && yarn dedupe", | ||
|
@@ -78,6 +83,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", | ||
|
@@ -100,7 +107,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" | ||
|
@@ -115,8 +121,7 @@ | |
}, | ||
"lavamoat": { | ||
"allowScripts": { | ||
"vitest>vite>esbuild": true, | ||
"tsup>esbuild": true | ||
"vitest>vite>esbuild": true | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted here: 220fe62