Skip to content

Commit 530251b

Browse files
committed
refactor: use pnpm monorepo
1 parent 4b0f335 commit 530251b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+1711
-969
lines changed

.changeset/config.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
{
22
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3-
"changelog": [
4-
"@changesets/changelog-github",
5-
{ "repo": "zhiyuanzmj/unplugin-vue-jsx-vapor" }
6-
],
73
"commit": false,
84
"fixed": [],
95
"linked": [],

.changeset/green-beers-hang.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 zhiyuanzmj <https://github.com/zhiyuanzmj>
3+
Copyright (c) 2023 zhiyuanzmj <https://github.com/zhiyuanzmj>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

package.json

Lines changed: 14 additions & 129 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
2-
"name": "unplugin-vue-jsx-vapor",
3-
"version": "1.0.9",
4-
"packageManager": "[email protected]",
2+
"packageManager": "[email protected]",
53
"description": "Convert Vue JSX to Vapor",
64
"type": "module",
75
"keywords": [
@@ -12,155 +10,42 @@
1210
"transform"
1311
],
1412
"license": "MIT",
15-
"homepage": "https://github.com/zhiyuanzmj/unplugin-vue-jsx-vapor#readme",
13+
"homepage": "https://github.com/unplugin/unplugin-vue-jsx-vapor#readme",
1614
"bugs": {
17-
"url": "https://github.com/zhiyuanzmj/unplugin-vue-jsx-vapor/issues"
15+
"url": "https://github.com/unplugin/unplugin-vue-jsx-vapor/issues"
1816
},
1917
"repository": {
2018
"type": "git",
21-
"url": "git+https://github.com/zhiyuanzmj/unplugin-vue-jsx-vapor.git"
22-
},
23-
"files": [
24-
"dist"
25-
],
26-
"main": "dist/index.cjs",
27-
"module": "dist/index.js",
28-
"types": "dist/index.d.ts",
29-
"exports": {
30-
".": {
31-
"types": "./dist/index.d.ts",
32-
"require": "./dist/index.cjs",
33-
"import": "./dist/index.js"
34-
},
35-
"./astro": {
36-
"types": "./dist/astro.d.ts",
37-
"require": "./dist/astro.cjs",
38-
"import": "./dist/astro.js"
39-
},
40-
"./rspack": {
41-
"types": "./dist/rspack.d.ts",
42-
"require": "./dist/rspack.cjs",
43-
"import": "./dist/rspack.js"
44-
},
45-
"./vite": {
46-
"types": "./dist/vite.d.ts",
47-
"require": "./dist/vite.cjs",
48-
"import": "./dist/vite.js"
49-
},
50-
"./webpack": {
51-
"types": "./dist/webpack.d.ts",
52-
"require": "./dist/webpack.cjs",
53-
"import": "./dist/webpack.js"
54-
},
55-
"./rollup": {
56-
"types": "./dist/rollup.d.ts",
57-
"require": "./dist/rollup.cjs",
58-
"import": "./dist/rollup.js"
59-
},
60-
"./esbuild": {
61-
"types": "./dist/esbuild.d.ts",
62-
"require": "./dist/esbuild.cjs",
63-
"import": "./dist/esbuild.js"
64-
},
65-
"./nuxt": {
66-
"types": "./dist/nuxt.d.ts",
67-
"require": "./dist/nuxt.cjs",
68-
"import": "./dist/nuxt.js"
69-
},
70-
"./types": {
71-
"types": "./dist/types.d.ts",
72-
"require": "./dist/types.cjs",
73-
"import": "./dist/types.js"
74-
},
75-
"./compiler": {
76-
"types": "./dist/core/compiler/index.d.ts",
77-
"require": "./dist/core/compiler/index.cjs",
78-
"import": "./dist/core/compiler/index.js"
79-
},
80-
"./*": "./*"
81-
},
82-
"typesVersions": {
83-
"*": {
84-
"*": [
85-
"./dist/*",
86-
"./*"
87-
]
88-
}
19+
"url": "git+https://github.com/unplugin/unplugin-vue-jsx-vapor.git"
8920
},
9021
"scripts": {
91-
"build": "tsup",
92-
"dev": "tsup --watch src",
93-
"build:fix": "esno scripts/postbuild.ts",
94-
"typecheck": "tsc --noEmit",
22+
"dev": "pnpm run --filter=\"./packages/*\" --parallel dev",
23+
"build": "pnpm run --filter=\"./packages/*\" build",
24+
"typecheck": "pnpm run --filter=\"./packages/*\" --parallel typecheck",
25+
"publish": "pnpm build && changeset publish",
9526
"lint": "eslint .",
9627
"play": "npm -C playground run dev",
97-
"release": "bumpp && npm publish",
98-
"publish": "pnpm build && changeset publish",
99-
"start": "esno src/index.ts",
10028
"test": "vitest"
10129
},
102-
"peerDependencies": {
103-
"@nuxt/kit": "^3",
104-
"@nuxt/schema": "^3",
105-
"esbuild": "*",
106-
"rollup": "^3",
107-
"vite": ">=3",
108-
"webpack": "^4 || ^5"
109-
},
110-
"peerDependenciesMeta": {
111-
"@nuxt/kit": {
112-
"optional": true
113-
},
114-
"@nuxt/schema": {
115-
"optional": true
116-
},
117-
"esbuild": {
118-
"optional": true
119-
},
120-
"rollup": {
121-
"optional": true
122-
},
123-
"vite": {
124-
"optional": true
125-
},
126-
"webpack": {
127-
"optional": true
128-
}
129-
},
130-
"dependencies": {
131-
"@babel/parser": "^7.24.7",
132-
"@babel/types": "^7.24.7",
133-
"@vue-macros/common": "^1.10.4",
134-
"@vue/compiler-core": "https://pkg.pr.new/vuejs/core-vapor/@vue/compiler-core@2eae25e",
135-
"@vue/compiler-dom": "https://pkg.pr.new/vuejs/core-vapor/@vue/compiler-dom@2eae25e",
136-
"@vue/compiler-vapor": "https://pkg.pr.new/vuejs/core-vapor/@vue/compiler-vapor@2eae25e",
137-
"@vue/runtime-vapor": "https://pkg.pr.new/vuejs/core-vapor/@vue/runtime-vapor@2eae25e",
138-
"@vue/shared": "https://pkg.pr.new/vuejs/core-vapor/@vue/shared@2eae25e",
139-
"magic-string-stack": "^0.1.1",
140-
"source-map-js": "^1.2.0",
141-
"unplugin": "^1.11.0",
142-
"vue": "https://pkg.pr.new/vuejs/core-vapor/vue@2eae25e"
143-
},
14430
"devDependencies": {
14531
"@antfu/eslint-config": "^2.21.2",
32+
"@babel/parser": "^7.24.7",
33+
"@babel/types": "^7.24.7",
14634
"@changesets/changelog-github": "^0.5.0",
14735
"@changesets/cli": "^2.27.7",
148-
"@nuxt/kit": "^3.12.3",
149-
"@nuxt/schema": "^3.12.3",
15036
"@sxzz/eslint-config": "^3.13.0",
15137
"@types/node": "^20.14.9",
15238
"bumpp": "^9.4.1",
15339
"chalk": "^5.3.0",
40+
"conventional-changelog-cli": "^5.0.0",
15441
"eslint": "^9.6.0",
15542
"esno": "^4.7.0",
15643
"fast-glob": "^3.3.2",
15744
"nodemon": "^3.1.4",
15845
"rimraf": "^5.0.7",
159-
"rollup": "^4.18.0",
16046
"tsup": "^8.1.0",
161-
"typescript": "^5.5.3",
162-
"vite": "^5.3.2",
163-
"vitest": "^1.6.0",
164-
"webpack": "^5.92.1"
47+
"typescript": "^5.7.0",
48+
"unplugin": "^1.11.0",
49+
"vitest": "^1.6.0"
16550
}
16651
}

packages/compiler/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# @vue-jsx-vapor/compiler
2+
3+
## 0.0.1
4+
5+
### Patch Changes
6+
7+
- fe259ed: refactor: use pnpm monorepo

packages/compiler/package.json

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"name": "@vue-jsx-vapor/compiler",
3+
"version": "0.0.1",
4+
"packageManager": "[email protected]",
5+
"description": "Vue JSX Vapor Compiler",
6+
"type": "module",
7+
"keywords": [
8+
"vue",
9+
"jsx",
10+
"vapor",
11+
"compiler"
12+
],
13+
"license": "MIT",
14+
"homepage": "https://github.com/unplugin/unplugin-vue-jsx-vapor#readme",
15+
"bugs": {
16+
"url": "https://github.com/unplugin/unplugin-vue-jsx-vapor/issues"
17+
},
18+
"repository": {
19+
"type": "git",
20+
"url": "git+https://github.com/unplugin/unplugin-vue-jsx-vapor.git"
21+
},
22+
"files": [
23+
"dist"
24+
],
25+
"main": "dist/index.cjs",
26+
"module": "dist/index.js",
27+
"types": "dist/index.d.ts",
28+
"exports": {
29+
".": {
30+
"dev": "./src/index.ts",
31+
"require": "./dist/index.cjs",
32+
"import": "./dist/index.js"
33+
},
34+
"./*": "./*"
35+
},
36+
"typesVersions": {
37+
"*": {
38+
"*": [
39+
"./dist/*",
40+
"./*"
41+
]
42+
}
43+
},
44+
"publishConfig": {
45+
".": {
46+
"require": "./dist/index.cjs",
47+
"import": "./dist/index.js"
48+
},
49+
"./*": "./*"
50+
},
51+
"scripts": {
52+
"build": "tsup",
53+
"dev": "DEV=true tsup",
54+
"typecheck": "tsc --noEmit",
55+
"release": "bumpp && npm publish",
56+
"test": "vitest"
57+
},
58+
"dependencies": {
59+
"@babel/parser": "^7.24.7",
60+
"@babel/types": "^7.24.7",
61+
"@vue-macros/common": "^1.10.4",
62+
"@vue/compiler-core": "catalog:",
63+
"@vue/compiler-dom": "catalog:",
64+
"@vue/compiler-vapor": "catalog:",
65+
"@vue/runtime-vapor": "catalog:",
66+
"@vue/shared": "catalog:"
67+
}
68+
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)