Skip to content

Commit 04ca237

Browse files
committed
chore: re-exports config-rocket instead of requiring as peerDep (+ a few refactor)
1 parent c4a8625 commit 04ca237

File tree

5 files changed

+14
-34
lines changed

5 files changed

+14
-34
lines changed

libs/roo-rocket/package.json

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,27 +33,17 @@
3333
"dist"
3434
],
3535
"scripts": {
36-
"start": "tsx",
37-
"watch": "tsx watch",
38-
"stub": "unbuild --stub",
39-
"cli": "pnpm run start src/cli.ts",
36+
"cli": "tsx src/cli-entry.ts",
4037
"lint": "eslint .",
4138
"test": "vitest",
4239
"test:types": "tsc --noEmit --skipLibCheck",
4340
"check": "pnpm lint && pnpm test:types && vitest run --coverage",
41+
"stub": "unbuild --stub",
4442
"build": "unbuild",
4543
"bumpp": "pnpm dlx bumpp --no-commit --no-tag --no-push",
4644
"doPublish": "pnpm publish",
4745
"prepublishOnly": "pnpm run build"
4846
},
49-
"peerDependencies": {
50-
"config-rocket": "catalog:peer"
51-
},
52-
"peerDependenciesMeta": {
53-
"config-rocket": {
54-
"optional": false
55-
}
56-
},
5747
"dependencies": {
5848
"citty": "^0.1.6",
5949
"consola": "^3.4.2",
@@ -67,7 +57,7 @@
6757
"@local/tsconfig": "workspace:*",
6858
"@namesmt/utils": "^0.5.13",
6959
"@vitest/coverage-v8": "^3.1.4",
70-
"confbox": "^0.2.2",
60+
"config-rocket": "^0.6.2",
7161
"unbuild": "^3.5.0",
7262
"vitest": "^3.1.4"
7363
}

libs/roo-rocket/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
export * from 'config-rocket'
2+
export * from 'config-rocket/cli'
13
export * from '~/rr/hookable'
24
export * from '~/rr/marketplace'

libs/roo-rocket/src/rr/hookable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import type { UnpackOptions } from 'config-rocket/cli'
77
import { readFile } from 'node:fs/promises'
8-
import defu from 'defu'
8+
import { defu } from 'defu'
99
import { createHooks } from 'hookable'
1010
import { basename } from 'pathe'
1111
import { logger } from '~/helpers/logger'

pnpm-lock.yaml

Lines changed: 8 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ packages:
22
- apps/*
33
- libs/*
44
- locals/*
5-
catalogs:
6-
peer:
7-
config-rocket: ^0.6.1
85
onlyBuiltDependencies:
96
- '@parcel/watcher'
107
- esbuild

0 commit comments

Comments
 (0)