Skip to content

Commit

Permalink
Fix/windows docs serve (#3311)
Browse files Browse the repository at this point in the history
* fix(build): stub tsconfig before runing build:analysis

* fix(build): use path in docs build plugins

* fix(build): update when-dependencies-installed

* chore: update when-dependencies-installed to 1.0.1
  • Loading branch information
m0ksem committed Apr 20, 2023
1 parent 3f55b9d commit 934dfd7
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 12 deletions.
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
Expand Up @@ -2,7 +2,7 @@ import MagicString from 'magic-string';
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 @@ -19375,12 +19375,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

0 comments on commit 934dfd7

Please sign in to comment.