Skip to content

Commit 020cde9

Browse files
committed
feat: add Astro and Farm plugins for unplugin integration
- Created `astro.ts` to define an Astro plugin that integrates with Vite. - Added `farm.ts` to create a Farm plugin using the unplugin factory.
1 parent 40799e2 commit 020cde9

File tree

4 files changed

+1266
-28
lines changed

4 files changed

+1266
-28
lines changed

package.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,26 @@
4040
"default": "./dist/index.cjs"
4141
}
4242
},
43+
"./astro": {
44+
"import": {
45+
"types": "./dist/astro.d.ts",
46+
"default": "./dist/astro.js"
47+
},
48+
"require": {
49+
"types": "./dist/astro.d.cts",
50+
"default": "./dist/astro.cjs"
51+
}
52+
},
53+
"./farm": {
54+
"import": {
55+
"types": "./dist/farm.d.ts",
56+
"default": "./dist/farm.js"
57+
},
58+
"require": {
59+
"types": "./dist/farm.d.cts",
60+
"default": "./dist/farm.cjs"
61+
}
62+
},
4363
"./vite": {
4464
"import": {
4565
"types": "./dist/vite.d.ts",
@@ -138,6 +158,7 @@
138158
"test": "vitest"
139159
},
140160
"peerDependencies": {
161+
"@farmfe/core": ">=1",
141162
"@nuxt/kit": "^3",
142163
"@nuxt/schema": "^3",
143164
"@rspack/core": "*",
@@ -147,6 +168,9 @@
147168
"webpack": "^4 || ^5"
148169
},
149170
"peerDependenciesMeta": {
171+
"@farmfe/core": {
172+
"optional": true
173+
},
150174
"@nuxt/kit": {
151175
"optional": true
152176
},

0 commit comments

Comments
 (0)