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",
|
||||
"type": "module",
|
||||
"version": "0.0.0",
|
||||
"packageManager": "pnpm@10.6.2",
|
||||
"packageManager": "pnpm@10.17.1",
|
||||
"description": "_description_",
|
||||
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
||||
"license": "MIT",
|
||||
@@ -16,18 +16,18 @@
|
||||
"keywords": [],
|
||||
"sideEffects": false,
|
||||
"exports": {
|
||||
".": "./dist/index.mjs",
|
||||
".": "./dist/index.js",
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"main": "./dist/index.mjs",
|
||||
"module": "./dist/index.mjs",
|
||||
"types": "./dist/index.d.mts",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"scripts": {
|
||||
"build": "unbuild",
|
||||
"dev": "unbuild --stub",
|
||||
"build": "tsdown",
|
||||
"dev": "tsdown watch",
|
||||
"lint": "eslint",
|
||||
"prepublishOnly": "nr build",
|
||||
"release": "bumpp",
|
||||
@@ -45,10 +45,10 @@
|
||||
"eslint": "catalog:cli",
|
||||
"lint-staged": "catalog:cli",
|
||||
"simple-git-hooks": "catalog:cli",
|
||||
"tinyexec": "catalog:utils",
|
||||
"tinyexec": "catalog:testing",
|
||||
"tsdown": "catalog:cli",
|
||||
"tsx": "catalog:cli",
|
||||
"typescript": "catalog:cli",
|
||||
"unbuild": "catalog:cli",
|
||||
"vite": "catalog:cli",
|
||||
"vitest": "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
|
||||
- packages/*
|
||||
- examples/*
|
||||
|
||||
ignoreWorkspaceRootCheck: true
|
||||
shellEmulator: true
|
||||
|
||||
catalogs:
|
||||
cli:
|
||||
'@antfu/eslint-config': ^4.10.1
|
||||
'@antfu/ni': ^24.1.0
|
||||
bumpp: ^10.1.0
|
||||
eslint: ^9.22.0
|
||||
lint-staged: ^15.5.0
|
||||
simple-git-hooks: ^2.11.1
|
||||
tsx: ^4.19.3
|
||||
typescript: ^5.8.2
|
||||
unbuild: ^3.5.0
|
||||
vite: ^6.2.1
|
||||
'@antfu/eslint-config': ^5.4.1
|
||||
'@antfu/ni': ^26.0.1
|
||||
bumpp: ^10.2.3
|
||||
eslint: ^9.36.0
|
||||
lint-staged: ^16.2.0
|
||||
simple-git-hooks: ^2.13.1
|
||||
tsdown: ^0.15.4
|
||||
tsx: ^4.20.5
|
||||
typescript: ^5.9.2
|
||||
vite: ^7.1.7
|
||||
inlined:
|
||||
'@antfu/utils': ^9.1.0
|
||||
'@antfu/utils': ^9.2.1
|
||||
testing:
|
||||
vitest: ^3.0.8
|
||||
tinyexec: ^1.0.1
|
||||
vitest: ^3.2.4
|
||||
vitest-package-exports: ^0.1.1
|
||||
yaml: ^2.7.0
|
||||
yaml: ^2.8.1
|
||||
types:
|
||||
'@types/node': ^22.13.10
|
||||
utils:
|
||||
tinyexec: ^0.3.2
|
||||
'@types/node': ^24.5.2
|
||||
onlyBuiltDependencies:
|
||||
- esbuild
|
||||
- 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