feat: switch to tsdown
This commit is contained in:
6 files changed
+1486
-2343
No files matched your search
@@ -1,14 +0,0 @@
|
|||||||
import { defineBuildConfig } from 'unbuild'
|
|
||||||
|
|
||||||
export default defineBuildConfig({
|
|
||||||
entries: [
|
|
||||||
'src/index',
|
|
||||||
],
|
|
||||||
declaration: 'node16',
|
|
||||||
clean: true,
|
|
||||||
rollup: {
|
|
||||||
inlineDependencies: [
|
|
||||||
'@antfu/utils',
|
|
||||||
],
|
|
||||||
},
|
|
||||||
})
|
|
||||||
+9
-9
@@ -2,7 +2,7 @@
|
|||||||
"name": "pkg-placeholder",
|
"name": "pkg-placeholder",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"packageManager": "pnpm@10.6.2",
|
"packageManager": "pnpm@10.17.1",
|
||||||
"description": "_description_",
|
"description": "_description_",
|
||||||
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@@ -16,18 +16,18 @@
|
|||||||
"keywords": [],
|
"keywords": [],
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./dist/index.mjs",
|
".": "./dist/index.js",
|
||||||
"./package.json": "./package.json"
|
"./package.json": "./package.json"
|
||||||
},
|
},
|
||||||
"main": "./dist/index.mjs",
|
"main": "./dist/index.js",
|
||||||
"module": "./dist/index.mjs",
|
"module": "./dist/index.js",
|
||||||
"types": "./dist/index.d.mts",
|
"types": "./dist/index.d.ts",
|
||||||
"files": [
|
"files": [
|
||||||
"dist"
|
"dist"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "unbuild",
|
"build": "tsdown",
|
||||||
"dev": "unbuild --stub",
|
"dev": "tsdown watch",
|
||||||
"lint": "eslint",
|
"lint": "eslint",
|
||||||
"prepublishOnly": "nr build",
|
"prepublishOnly": "nr build",
|
||||||
"release": "bumpp",
|
"release": "bumpp",
|
||||||
@@ -45,10 +45,10 @@
|
|||||||
"eslint": "catalog:cli",
|
"eslint": "catalog:cli",
|
||||||
"lint-staged": "catalog:cli",
|
"lint-staged": "catalog:cli",
|
||||||
"simple-git-hooks": "catalog:cli",
|
"simple-git-hooks": "catalog:cli",
|
||||||
"tinyexec": "catalog:utils",
|
"tinyexec": "catalog:testing",
|
||||||
|
"tsdown": "catalog:cli",
|
||||||
"tsx": "catalog:cli",
|
"tsx": "catalog:cli",
|
||||||
"typescript": "catalog:cli",
|
"typescript": "catalog:cli",
|
||||||
"unbuild": "catalog:cli",
|
|
||||||
"vite": "catalog:cli",
|
"vite": "catalog:cli",
|
||||||
"vitest": "catalog:testing",
|
"vitest": "catalog:testing",
|
||||||
"vitest-package-exports": "catalog:testing",
|
"vitest-package-exports": "catalog:testing",
|
||||||
|
|||||||
Generated
+1450
-2302
File diff suppressed because it is too large.
Load diff
+19
-16
@@ -3,28 +3,31 @@ packages:
|
|||||||
- docs
|
- docs
|
||||||
- packages/*
|
- packages/*
|
||||||
- examples/*
|
- examples/*
|
||||||
|
|
||||||
|
ignoreWorkspaceRootCheck: true
|
||||||
|
shellEmulator: true
|
||||||
|
|
||||||
catalogs:
|
catalogs:
|
||||||
cli:
|
cli:
|
||||||
'@antfu/eslint-config': ^4.10.1
|
'@antfu/eslint-config': ^5.4.1
|
||||||
'@antfu/ni': ^24.1.0
|
'@antfu/ni': ^26.0.1
|
||||||
bumpp: ^10.1.0
|
bumpp: ^10.2.3
|
||||||
eslint: ^9.22.0
|
eslint: ^9.36.0
|
||||||
lint-staged: ^15.5.0
|
lint-staged: ^16.2.0
|
||||||
simple-git-hooks: ^2.11.1
|
simple-git-hooks: ^2.13.1
|
||||||
tsx: ^4.19.3
|
tsdown: ^0.15.4
|
||||||
typescript: ^5.8.2
|
tsx: ^4.20.5
|
||||||
unbuild: ^3.5.0
|
typescript: ^5.9.2
|
||||||
vite: ^6.2.1
|
vite: ^7.1.7
|
||||||
inlined:
|
inlined:
|
||||||
'@antfu/utils': ^9.1.0
|
'@antfu/utils': ^9.2.1
|
||||||
testing:
|
testing:
|
||||||
vitest: ^3.0.8
|
tinyexec: ^1.0.1
|
||||||
|
vitest: ^3.2.4
|
||||||
vitest-package-exports: ^0.1.1
|
vitest-package-exports: ^0.1.1
|
||||||
yaml: ^2.7.0
|
yaml: ^2.8.1
|
||||||
types:
|
types:
|
||||||
'@types/node': ^22.13.10
|
'@types/node': ^24.5.2
|
||||||
utils:
|
|
||||||
tinyexec: ^0.3.2
|
|
||||||
onlyBuiltDependencies:
|
onlyBuiltDependencies:
|
||||||
- esbuild
|
- esbuild
|
||||||
- simple-git-hooks
|
- simple-git-hooks
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
import { defineConfig } from 'tsdown'
|
||||||
|
|
||||||
|
export default defineConfig({
|
||||||
|
entry: [
|
||||||
|
'src/index.ts',
|
||||||
|
],
|
||||||
|
dts: true,
|
||||||
|
})
|
||||||
Reference in new issue
Block a user