Skip to content

Commit 5e4f390

Browse files
committed
chore: prepare monorepo
1 parent bc73f11 commit 5e4f390

20 files changed

Lines changed: 1568 additions & 107 deletions

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ jobs:
1818

1919
- run: mise run build
2020

21-
- run: pnpm publish --no-git-checks
21+
- run: pnpm -r publish --no-git-checks --access public

demo/package.json

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,19 @@
44
"private": true,
55
"type": "module",
66
"scripts": {
7-
"dev": "vite",
8-
"build": "run-p type-check \"build-only {@}\" --",
9-
"preview": "vite preview",
10-
"build-only": "vite build",
11-
"type-check": "vue-tsc --build"
7+
"dev": "vite"
128
},
139
"dependencies": {
14-
"pinia": "^3.0.4",
15-
"vue": "^3.5.26"
10+
"@vingy/vuebugger": "workspace:^",
11+
"pinia": "catalog:",
12+
"vue": "catalog:"
1613
},
1714
"devDependencies": {
18-
"@tsconfig/node24": "^24.0.4",
19-
"@types/node": "^24.10.9",
20-
"@vitejs/plugin-vue": "^6.0.3",
21-
"@vue/tsconfig": "^0.8.1",
22-
"npm-run-all2": "^8.0.4",
23-
"typescript": "~5.9.3",
24-
"vite": "beta",
25-
"vite-plugin-vue-devtools": "^8.0.5",
26-
"vue-tsc": "^3.2.2"
15+
"@vitejs/plugin-vue": "catalog:",
16+
"@vue/tsconfig": "catalog:",
17+
"vite": "catalog:",
18+
"vite-plugin-vue-devtools": "catalog:",
19+
"vue-tsc": "catalog:"
2720
},
2821
"engines": {
2922
"node": "^20.19.0 || >=22.12.0"

demo/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2+
import { debug } from '@vingy/vuebugger'
23
import { ref } from 'vue'
3-
import { debug } from '../../src'
44
import MyComponent from './MyComponent.vue'
55
66
const count = ref(0)

demo/src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { createApp } from 'vue'
1+
import Vuebugger from '@vingy/vuebugger'
22
import { createPinia } from 'pinia'
3+
import { createApp } from 'vue'
34
import App from './App.vue'
4-
import Vuebugger from '../../src'
55

66
const app = createApp(App)
77

demo/src/myComposable.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { debug } from '@vingy/vuebugger'
12
import { computed, reactive, ref } from 'vue'
2-
import { debug } from '../../src'
33

44
export function useFoo() {
55
const priv = ref(0)

package.json

Lines changed: 14 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
{
2-
"name": "@vingy/vuebugger",
3-
"version": "0.2.0",
4-
"description": "Vue devtools plugin to debug anything.",
5-
"keywords": [
6-
"composable",
7-
"composition-api",
8-
"debugging",
9-
"devtools",
10-
"plugin",
11-
"state",
12-
"vue"
13-
],
2+
"name": "@vingy/vue-utilities",
3+
"description": "Monorepo for all my vue utilities.",
144
"license": "MIT",
155
"author": "vingy",
166
"repository": {
@@ -21,36 +11,21 @@
2111
"dist"
2212
],
2313
"type": "module",
24-
"sideEffects": false,
25-
"main": "./dist/index.mjs",
26-
"types": "./dist/index.d.mts",
27-
"exports": {
28-
".": {
29-
"types": "./dist/index.d.mts",
30-
"import": "./dist/index.mjs"
31-
}
32-
},
33-
"publishConfig": {
34-
"access": "public"
35-
},
3614
"scripts": {
37-
"test": "vitest",
38-
"test:ci": "vitest run --coverage",
39-
"build": "tsdown",
40-
"dev": "tsdown -w"
15+
"test": "pnpm -r test",
16+
"test:ci": "pnpm -r test:ci",
17+
"build": "pnpm -r build",
18+
"dev": "pnpm -r dev"
4119
},
4220
"devDependencies": {
43-
"@types/node": "^25.0.10",
44-
"@vitest/coverage-v8": "4.0.18",
45-
"@vue/devtools-api": "^8.0.5",
46-
"oxfmt": "^0.27.0",
47-
"oxlint": "^1.42.0",
48-
"tsdown": "^0.20.1",
49-
"typescript": "^5.9.3",
50-
"vitest": "^4.0.18"
51-
},
52-
"peerDependencies": {
53-
"vue": "^3.5.0"
21+
"@tsconfig/node24": "catalog:",
22+
"@types/node": "catalog:",
23+
"@vitest/coverage-v8": "catalog:",
24+
"oxfmt": "catalog:",
25+
"oxlint": "catalog:",
26+
"tsdown": "catalog:",
27+
"typescript": "catalog:",
28+
"vitest": "catalog:"
5429
},
5530
"packageManager": "pnpm@10.28.0"
5631
}

packages/vuebugger/package.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"name": "@vingy/vuebugger",
3+
"version": "0.2.0",
4+
"description": "Vue devtools plugin to debug anything.",
5+
"keywords": [
6+
"composable",
7+
"composition-api",
8+
"debugging",
9+
"devtools",
10+
"plugin",
11+
"state",
12+
"vue"
13+
],
14+
"license": "MIT",
15+
"author": "vingy",
16+
"repository": {
17+
"type": "git",
18+
"url": "https://github.com/vinpogo/vuebugger"
19+
},
20+
"files": [
21+
"dist"
22+
],
23+
"type": "module",
24+
"sideEffects": false,
25+
"main": "./dist/index.mjs",
26+
"types": "./dist/index.d.mts",
27+
"exports": {
28+
".": {
29+
"types": "./dist/index.d.mts",
30+
"import": "./dist/index.mjs"
31+
}
32+
},
33+
"publishConfig": {
34+
"access": "public"
35+
},
36+
"scripts": {
37+
"test": "vitest",
38+
"test:ci": "vitest run --coverage",
39+
"build": "tsdown",
40+
"dev": "tsdown -w"
41+
},
42+
"devDependencies": {
43+
"@vue/devtools-api": "catalog:"
44+
},
45+
"peerDependencies": {
46+
"vue": "catalog:"
47+
},
48+
"packageManager": "pnpm@10.28.0"
49+
}

0 commit comments

Comments
 (0)