Skip to content

Commit

Permalink
feat: add farm export (#30)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Fu <github@antfu.me>
  • Loading branch information
wzc520pyfm and antfu authored Aug 31, 2024
1 parent 9e15253 commit 100d33f
Show file tree
Hide file tree
Showing 4 changed files with 1,534 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: lts/*

- name: Setup
run: npm i -g @antfu/ni
Expand All @@ -33,14 +33,14 @@ jobs:

strategy:
matrix:
node: [16.x, 18.x]
node: [lts/*]
os: [ubuntu-latest, windows-latest, macos-latest]
fail-fast: false

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set node ${{ matrix.node }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

Expand Down
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@
"import": "./dist/nuxt.js",
"require": "./dist/nuxt.cjs"
},
"./farm": {
"import": "./dist/farm.js",
"require": "./dist/farm.cjs"
},
"./types": {
"import": "./dist/types.js",
"require": "./dist/types.cjs"
Expand Down Expand Up @@ -85,6 +89,7 @@
"test": "vitest"
},
"peerDependencies": {
"@farmfe/core": ">=1",
"@nuxt/kit": "^3",
"@nuxt/schema": "^3",
"esbuild": "*",
Expand All @@ -93,6 +98,9 @@
"webpack": "^4 || ^5"
},
"peerDependenciesMeta": {
"@farmfe/core": {
"optional": true
},
"@nuxt/kit": {
"optional": true
},
Expand Down
Loading

0 comments on commit 100d33f

Please sign in to comment.