1
0
mirror of https://github.com/robonen/tools.git synced 2026-03-20 02:44:45 +00:00

chore: update package versions and integrate shared tsdown configuration

This commit is contained in:
2026-02-15 03:13:49 +07:00
parent 70d96b7f39
commit 1782184761
13 changed files with 87 additions and 24 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "@robonen/oxlint", "name": "@robonen/oxlint",
"version": "0.0.1", "version": "0.0.2",
"license": "Apache-2.0", "license": "Apache-2.0",
"description": "Composable oxlint configuration presets", "description": "Composable oxlint configuration presets",
"keywords": [ "keywords": [
@@ -40,6 +40,7 @@
"devDependencies": { "devDependencies": {
"@robonen/oxlint": "workspace:*", "@robonen/oxlint": "workspace:*",
"@robonen/tsconfig": "workspace:*", "@robonen/tsconfig": "workspace:*",
"@robonen/tsdown": "workspace:*",
"oxlint": "catalog:", "oxlint": "catalog:",
"tsdown": "catalog:" "tsdown": "catalog:"
}, },

View File

@@ -1,6 +1,3 @@
{ {
"extends": "@robonen/tsconfig/tsconfig.json", "extends": "@robonen/tsconfig/tsconfig.json"
"compilerOptions": {
"rootDir": "."
}
} }

View File

@@ -1,9 +1,7 @@
import { defineConfig } from 'tsdown'; import { defineConfig } from 'tsdown';
import { sharedConfig } from '@robonen/tsdown';
export default defineConfig({ export default defineConfig({
...sharedConfig,
entry: ['src/index.ts'], entry: ['src/index.ts'],
format: ['esm', 'cjs'],
dts: true,
clean: true,
hash: false,
}); });

View File

@@ -0,0 +1,30 @@
{
"name": "@robonen/tsdown",
"version": "0.0.1",
"private": true,
"license": "Apache-2.0",
"description": "Shared tsdown configuration for @robonen packages",
"keywords": [
"tsdown",
"config",
"build"
],
"author": "Robonen Andrew <robonenandrew@gmail.com>",
"repository": {
"type": "git",
"url": "git+https://github.com/robonen/tools.git",
"directory": "configs/tsdown"
},
"packageManager": "pnpm@10.29.3",
"engines": {
"node": ">=24.13.1"
},
"type": "module",
"exports": {
".": "./src/index.ts"
},
"devDependencies": {
"@robonen/tsconfig": "workspace:*",
"tsdown": "catalog:"
}
}

View File

@@ -0,0 +1,13 @@
import type { Options } from 'tsdown';
const BANNER = '/*! @robonen/tools | (c) 2026 Robonen Andrew | Apache-2.0 */';
export const sharedConfig = {
format: ['esm', 'cjs'],
dts: true,
clean: true,
hash: false,
outputOptions: {
banner: BANNER,
},
} satisfies Options;

View File

@@ -0,0 +1,3 @@
{
"extends": "@robonen/tsconfig/tsconfig.json"
}

View File

@@ -1,6 +1,6 @@
{ {
"name": "@robonen/platform", "name": "@robonen/platform",
"version": "0.0.3", "version": "0.0.4",
"license": "Apache-2.0", "license": "Apache-2.0",
"description": "Platform dependent utilities for javascript development", "description": "Platform dependent utilities for javascript development",
"keywords": [ "keywords": [
@@ -47,6 +47,7 @@
"devDependencies": { "devDependencies": {
"@robonen/oxlint": "workspace:*", "@robonen/oxlint": "workspace:*",
"@robonen/tsconfig": "workspace:*", "@robonen/tsconfig": "workspace:*",
"@robonen/tsdown": "workspace:*",
"oxlint": "catalog:", "oxlint": "catalog:",
"tsdown": "catalog:" "tsdown": "catalog:"
} }

View File

@@ -1,12 +1,10 @@
import { defineConfig } from 'tsdown'; import { defineConfig } from 'tsdown';
import { sharedConfig } from '@robonen/tsdown';
export default defineConfig({ export default defineConfig({
...sharedConfig,
entry: { entry: {
browsers: 'src/browsers/index.ts', browsers: 'src/browsers/index.ts',
multi: 'src/multi/index.ts', multi: 'src/multi/index.ts',
}, },
format: ['esm', 'cjs'],
dts: true,
clean: true,
hash: false,
}); });

View File

@@ -1,6 +1,6 @@
{ {
"name": "@robonen/stdlib", "name": "@robonen/stdlib",
"version": "0.0.8", "version": "0.0.9",
"license": "Apache-2.0", "license": "Apache-2.0",
"description": "A collection of tools, utilities, and helpers for TypeScript", "description": "A collection of tools, utilities, and helpers for TypeScript",
"keywords": [ "keywords": [
@@ -42,6 +42,7 @@
"devDependencies": { "devDependencies": {
"@robonen/oxlint": "workspace:*", "@robonen/oxlint": "workspace:*",
"@robonen/tsconfig": "workspace:*", "@robonen/tsconfig": "workspace:*",
"@robonen/tsdown": "workspace:*",
"oxlint": "catalog:", "oxlint": "catalog:",
"tsdown": "catalog:" "tsdown": "catalog:"
} }

View File

@@ -1,9 +1,7 @@
import { defineConfig } from 'tsdown'; import { defineConfig } from 'tsdown';
import { sharedConfig } from '@robonen/tsdown';
export default defineConfig({ export default defineConfig({
...sharedConfig,
entry: ['src/index.ts'], entry: ['src/index.ts'],
format: ['esm', 'cjs'],
dts: true,
clean: true,
hash: false,
}); });

24
pnpm-lock.yaml generated
View File

@@ -56,6 +56,9 @@ importers:
scule: scule:
specifier: ^1.3.0 specifier: ^1.3.0
version: 1.3.0 version: 1.3.0
tsdown:
specifier: 'catalog:'
version: 0.12.9(typescript@5.8.3)
vitest: vitest:
specifier: 'catalog:' specifier: 'catalog:'
version: 4.0.18(@opentelemetry/api@1.9.0)(@types/node@24.10.13)(@vitest/ui@4.0.18)(jiti@2.6.1)(jsdom@28.0.0)(terser@5.44.0)(yaml@2.8.2) version: 4.0.18(@opentelemetry/api@1.9.0)(@types/node@24.10.13)(@vitest/ui@4.0.18)(jiti@2.6.1)(jsdom@28.0.0)(terser@5.44.0)(yaml@2.8.2)
@@ -68,6 +71,9 @@ importers:
'@robonen/tsconfig': '@robonen/tsconfig':
specifier: workspace:* specifier: workspace:*
version: link:../tsconfig version: link:../tsconfig
'@robonen/tsdown':
specifier: workspace:*
version: link:../tsdown
oxlint: oxlint:
specifier: 'catalog:' specifier: 'catalog:'
version: 1.47.0 version: 1.47.0
@@ -77,6 +83,15 @@ importers:
configs/tsconfig: {} configs/tsconfig: {}
configs/tsdown:
devDependencies:
'@robonen/tsconfig':
specifier: workspace:*
version: link:../tsconfig
tsdown:
specifier: 'catalog:'
version: 0.12.9(typescript@5.8.3)
core/platform: core/platform:
devDependencies: devDependencies:
'@robonen/oxlint': '@robonen/oxlint':
@@ -85,6 +100,9 @@ importers:
'@robonen/tsconfig': '@robonen/tsconfig':
specifier: workspace:* specifier: workspace:*
version: link:../../configs/tsconfig version: link:../../configs/tsconfig
'@robonen/tsdown':
specifier: workspace:*
version: link:../../configs/tsdown
oxlint: oxlint:
specifier: 'catalog:' specifier: 'catalog:'
version: 1.47.0 version: 1.47.0
@@ -100,6 +118,9 @@ importers:
'@robonen/tsconfig': '@robonen/tsconfig':
specifier: workspace:* specifier: workspace:*
version: link:../../configs/tsconfig version: link:../../configs/tsconfig
'@robonen/tsdown':
specifier: workspace:*
version: link:../../configs/tsdown
oxlint: oxlint:
specifier: 'catalog:' specifier: 'catalog:'
version: 1.47.0 version: 1.47.0
@@ -131,6 +152,9 @@ importers:
'@robonen/tsconfig': '@robonen/tsconfig':
specifier: workspace:* specifier: workspace:*
version: link:../../configs/tsconfig version: link:../../configs/tsconfig
'@robonen/tsdown':
specifier: workspace:*
version: link:../../configs/tsdown
'@vue/test-utils': '@vue/test-utils':
specifier: 'catalog:' specifier: 'catalog:'
version: 2.4.6 version: 2.4.6

View File

@@ -1,6 +1,6 @@
{ {
"name": "@robonen/vue", "name": "@robonen/vue",
"version": "0.0.11", "version": "0.0.12",
"license": "Apache-2.0", "license": "Apache-2.0",
"description": "Collection of powerful tools for Vue", "description": "Collection of powerful tools for Vue",
"keywords": [ "keywords": [
@@ -40,6 +40,7 @@
"devDependencies": { "devDependencies": {
"@robonen/oxlint": "workspace:*", "@robonen/oxlint": "workspace:*",
"@robonen/tsconfig": "workspace:*", "@robonen/tsconfig": "workspace:*",
"@robonen/tsdown": "workspace:*",
"@vue/test-utils": "catalog:", "@vue/test-utils": "catalog:",
"oxlint": "catalog:", "oxlint": "catalog:",
"tsdown": "catalog:" "tsdown": "catalog:"

View File

@@ -1,11 +1,9 @@
import { defineConfig } from 'tsdown'; import { defineConfig } from 'tsdown';
import { sharedConfig } from '@robonen/tsdown';
export default defineConfig({ export default defineConfig({
...sharedConfig,
entry: ['src/index.ts'], entry: ['src/index.ts'],
format: ['esm', 'cjs'],
dts: true,
clean: true,
hash: false,
external: ['vue'], external: ['vue'],
noExternal: [/^@robonen\//], noExternal: [/^@robonen\//],
}); });