Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "module",
"version": "4.0.0",
"private": true,
"packageManager": "pnpm@12.15.0",
"packageManager": "pnpm@12.16.1",
"repository": {
"type": "git",
"url": "git+https://github.com/nuxt/devtools.git"
Expand All @@ -27,7 +27,7 @@
"docs:screenshots": "playwright test --config tests/docs-screenshots/playwright.config.ts",
"typecheck": "vue-tsc --noEmit",
"postinstall": "simple-git-hooks && skills experimental_sync -y -r",
"dev:prepare": "pnpm -r --filter=\"./packages/*\" run dev:prepare"
"dev:prepare": "pnpm -C packages/devtools-onboard run dev:prepare && pnpm -r --filter=\"./packages/*\" --filter=\"!@nuxt/devtools-onboard\" run dev:prepare"
},
"devDependencies": {
"@antfu/eslint-config": "catalog:cli",
Expand Down
6 changes: 3 additions & 3 deletions packages/devtools-onboard/test/module.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ async function installStandIn(rootDir: string, name: string) {
}

/**
* Nuxt core pushes the bare `@nuxt/devtools` name into `_modules`; aliasing
* it to this module reproduces what Nuxt 5 does with `@nuxt/devtools-onboard`.
* Nuxt 5 core pushes the bare `@nuxt/devtools-onboard` name into `_modules`;
* aliasing it to this module's source tests it the way Nuxt loads it.
* `withoutDevtools` drops every `node_modules` Nuxt can resolve from, which is
* the situation of a Nuxt that no longer depends on `@nuxt/devtools` itself;
* `installed` then puts stand-in packages back into the project.
Expand All @@ -38,7 +38,7 @@ async function bootNuxt(overrides: NuxtConfig, { withoutDevtools = false, instal
cwd: rootDir,
ready: false,
overrides: {
alias: { '@nuxt/devtools': onboardModule },
alias: { '@nuxt/devtools-onboard': onboardModule },
telemetry: false,
...overrides,
},
Expand Down
Loading
Loading