chore: switch to unbuild
This commit is contained in:
1 parent
e9f6d37360
commit
f1d73e195d
5 files changed
+1195
-1301
No files matched your search
@@ -1,2 +1,2 @@
|
||||
ignore-workspace-root-check=true
|
||||
# shamefully-hoist=true
|
||||
shamefully-hoist=true
|
||||
@@ -0,0 +1,9 @@
|
||||
import { defineBuildConfig } from 'unbuild'
|
||||
|
||||
export default defineBuildConfig({
|
||||
entries: [
|
||||
'src/index',
|
||||
],
|
||||
declaration: true,
|
||||
clean: true,
|
||||
})
|
||||
+20
-19
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "[name]",
|
||||
"name": "name",
|
||||
"version": "0.0.0",
|
||||
"description": "",
|
||||
"keywords": [],
|
||||
@@ -17,19 +17,20 @@
|
||||
"sideEffects": false,
|
||||
"exports": {
|
||||
".": {
|
||||
"require": "./dist/index.js",
|
||||
"import": "./dist/index.mjs"
|
||||
"require": "./dist/index.cjs",
|
||||
"import": "./dist/index.mjs",
|
||||
"types": "./dist/index.d.ts"
|
||||
}
|
||||
},
|
||||
"main": "dist/index.js",
|
||||
"module": "dist/index.mjs",
|
||||
"types": "dist/index.d.ts",
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.mjs",
|
||||
"types": "./dist/index.d.ts",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "tsup",
|
||||
"dev": "tsup --watch src",
|
||||
"build": "unbuild",
|
||||
"dev": "unbuild --stub",
|
||||
"lint": "eslint \"{src,test}/**/*.ts\"",
|
||||
"prepublishOnly": "nr build",
|
||||
"release": "bumpp --commit --push --tag && pnpm publish",
|
||||
@@ -37,17 +38,17 @@
|
||||
"test": "jest"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@antfu/eslint-config": "^0.9.0",
|
||||
"@antfu/ni": "^0.9.3",
|
||||
"@types/jest": "^27.0.2",
|
||||
"@types/node": "^16.10.3",
|
||||
"@antfu/eslint-config": "^0.11.1",
|
||||
"@antfu/ni": "^0.11.0",
|
||||
"@types/jest": "^27.0.3",
|
||||
"@types/node": "^16.11.10",
|
||||
"bumpp": "^7.1.1",
|
||||
"eslint": "^7.32.0",
|
||||
"eslint-plugin-jest": "^24.5.2",
|
||||
"esno": "^0.10.1",
|
||||
"jest": "^27.2.5",
|
||||
"ts-jest": "^27.0.5",
|
||||
"tsup": "^5.4.0",
|
||||
"typescript": "^4.4.3"
|
||||
"eslint": "^8.3.0",
|
||||
"eslint-plugin-jest": "^25.3.0",
|
||||
"esno": "^0.12.1",
|
||||
"jest": "^27.3.1",
|
||||
"ts-jest": "^27.0.7",
|
||||
"typescript": "^4.5.2",
|
||||
"unbuild": "^0.5.13"
|
||||
}
|
||||
}
|
||||
Generated
+1165
-1268
File diff suppressed because it is too large.
Load diff
@@ -1,13 +0,0 @@
|
||||
import { Options } from 'tsup'
|
||||
|
||||
const config: Options = {
|
||||
splitting: true,
|
||||
format: ['esm', 'cjs'],
|
||||
entryPoints: [
|
||||
'src/*.ts',
|
||||
],
|
||||
clean: true,
|
||||
dts: true,
|
||||
}
|
||||
|
||||
export default config
|
||||
Reference in new issue
Block a user