mirror of
https://github.com/robonen/tools.git
synced 2026-03-20 10:54:44 +00:00
Merge pull request #126 from robonen/shared-build-config
chore: update package versions and integrate shared tsdown configuration
This commit is contained in:
@@ -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:"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
{
|
{
|
||||||
"extends": "@robonen/tsconfig/tsconfig.json",
|
"extends": "@robonen/tsconfig/tsconfig.json"
|
||||||
"compilerOptions": {
|
|
||||||
"rootDir": "."
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,
|
|
||||||
});
|
});
|
||||||
|
|||||||
30
configs/tsdown/package.json
Normal file
30
configs/tsdown/package.json
Normal 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:"
|
||||||
|
}
|
||||||
|
}
|
||||||
13
configs/tsdown/src/index.ts
Normal file
13
configs/tsdown/src/index.ts
Normal 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;
|
||||||
3
configs/tsdown/tsconfig.json
Normal file
3
configs/tsdown/tsconfig.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"extends": "@robonen/tsconfig/tsconfig.json"
|
||||||
|
}
|
||||||
@@ -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:"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,
|
|
||||||
});
|
});
|
||||||
@@ -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:"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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,
|
|
||||||
});
|
});
|
||||||
21
pnpm-lock.yaml
generated
21
pnpm-lock.yaml
generated
@@ -68,6 +68,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 +80,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 +97,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 +115,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 +149,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
|
||||||
|
|||||||
@@ -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:"
|
||||||
|
|||||||
@@ -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\//],
|
||||||
});
|
});
|
||||||
Reference in New Issue
Block a user