diff --git a/docs/scripts/build-docs.ts b/docs/scripts/build-docs.ts index 158e6d4..1b01076 100644 --- a/docs/scripts/build-docs.ts +++ b/docs/scripts/build-docs.ts @@ -1,16 +1,15 @@ import 'zx/globals' const isSoDoc = process.env.PIPLINENAME === 'SODOC' -const __dirname = new URL('.', import.meta.url).pathname if (isSoDoc) { process.env.IS_SODOC = 'true' - await $`pnpm add @alita/rspress-plugin@^1.5.0-beta.2 @shein/rspress-plugin-sodoc` + await $`pnpm add @alita/rspress-plugin@^1.6.3 @shein/rspress-plugin-sodoc` } await $`rspress build` if (isSoDoc) { - await $({ cwd: __dirname })`cp -r ../docs-dist ../../docs-dist` + await $`cp -r ./docs-dist ../docs-dist` }