Skip to content

Commit

Permalink
Setup pnpm workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
pmrotule committed Jun 21, 2024
1 parent 7af09b2 commit e9942e4
Show file tree
Hide file tree
Showing 7 changed files with 7,885 additions and 8,710 deletions.
4 changes: 4 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node-version=20.14.0
engine-strict=true
shamefully-hoist=true
strict-peer-dependencies=false
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"@nuxt/module-builder": "^0.7.1",
"@nuxt/schema": "^3.12.1",
"@nuxt/test-utils": "^3.13.1",
"@nuxt/ui": "^2.17.0",
"@types/node": "^20.14.2",
"changelogen": "^0.5.5",
"eslint": "^9.4.0",
Expand All @@ -51,5 +52,8 @@
"typescript": "latest",
"vitest": "^1.6.0",
"vue-tsc": "^2.0.21"
},
"resolutions": {
"nuxt-request-timeline": "link:."
}
}
4 changes: 2 additions & 2 deletions playground/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default defineNuxtConfig({
modules: ['../src/module'],
requestTimeline: {},
devtools: { enabled: true },
modules: ['@nuxt/ui', 'nuxt-request-timeline'],
requestTimeline: {},
})
3 changes: 2 additions & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"generate": "nuxi generate"
},
"dependencies": {
"nuxt": "^3.12.1"
"nuxt": "^3.12.1",
"nuxt-request-timeline": "workspace:*"
}
}
16,574 changes: 7,870 additions & 8,704 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
packages:
- 'playground'
4 changes: 1 addition & 3 deletions test/fixtures/basic/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import RequestTimeline from '../../../src/module'

export default defineNuxtConfig({
modules: [RequestTimeline],
modules: ['@nuxt/ui', 'nuxt-request-timeline'],
})

0 comments on commit e9942e4

Please sign in to comment.