Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/windows docs serve #3311

Merged
merged 4 commits into from
Apr 20, 2023
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
2 changes: 1 addition & 1 deletion packages/docs/modules/markdown/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineNuxtModule, addImports } from '@nuxt/kit';
import { resolve } from 'path'
import { resolve } from 'pathe'

export default defineNuxtModule({
meta: {
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/modules/page-config/blocks/file/transform.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineBlockTransform } from "../../compiler/define-block-transform";
import { extname } from 'path'
import { extname } from 'pathe'
import { readFile } from 'fs/promises'

export default defineBlockTransform(async function (block) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { resolve, dirname, parse } from 'path'
import { resolve, dirname, parse } from 'pathe'
import { type TransformPluginContext } from 'rollup'
import { resolveAlias } from '@nuxt/kit';
import { readdirSync, existsSync } from 'fs'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { addVitePlugin } from '@nuxt/kit';
import { createFilter } from '@rollup/pluginutils'
import { createImporter } from '../compiler/create-importer'
import { resolve } from 'path'
import { resolve } from 'pathe'
import { transform } from '../compiler/transform'
import { exportTranslations } from '../i18n/export-translations'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { exportTranslations } from '../export-translations';
import { describe, test, expect } from 'vitest'
import { resolve } from 'path'
import { resolve } from 'pathe'
import { createImporter } from '../../compiler/create-importer';

describe('export-translations', () => {
Expand Down
8 changes: 5 additions & 3 deletions packages/sandbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"build": "rm -rf ./dist && yarn build:vite && yarn build:vue-cli && yarn build:nuxt",
"build:vite": "vue-tsc --noEmit && vite build --config ./configs/vite/vite.base.ts",
"build:analysis": "tsx ./scripts/bundle-analysis.ts",
"build:analysis": "node ./scripts/stud-nuxt.mjs && tsx ./scripts/bundle-analysis.ts",
"build:vue-cli": "vue-cli-service build",
"build:nuxt": "nuxt build",
"build:web-components": "vue-tsc --noEmit && vite build --config ./web-components/vite.config.ts",
Expand Down Expand Up @@ -47,9 +47,11 @@
"vue-tsc": "^0.38.2",
"webpack": "5",
"webpack-cli": "^4.9.2",
"when-dependencies-installed": "^1.0.0"
"when-dependencies-installed": "^1.0.1"
},
"workspaces": {
"nohoist": ["vite"]
"nohoist": [
"vite"
]
}
}
9 changes: 5 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -19240,12 +19240,13 @@ whatwg-url@^8.0.0, whatwg-url@^8.5.0:
tr46 "^2.1.0"
webidl-conversions "^6.1.0"

when-dependencies-installed@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/when-dependencies-installed/-/when-dependencies-installed-1.0.0.tgz#816dcaa1d7e1b7501e5f22a07f3f72155da6ebfe"
integrity sha512-8M3sDdOfKYy5FGUp8g8TrjUM+3mEZFLthWunT/orvgSwduDLFZ+usXsde+q1DFXGMdeWDF8RKrIZ+B/rviH39w==
when-dependencies-installed@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/when-dependencies-installed/-/when-dependencies-installed-1.0.1.tgz#56e0bab4b866c9c52987020abcc3dfed8c33541d"
integrity sha512-swvwG6T9iOLXUJ588fB+OljSvPoQwOjEP468ZYvfMIl60URTJ0ikUg0GA1C1jwYvwtwLpfzVmTeDgIHfC1BULQ==
dependencies:
fast-glob "^3.2.12"
pathe "^1.1.0"

which-boxed-primitive@^1.0.2:
version "1.0.2"
Expand Down