Skip to content

Commit 3296c06

Browse files
committed
fix: build
1 parent 2603f1f commit 3296c06

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/create-app/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ async function init() {
8181

8282
write('package.json', JSON.stringify(pkg, null, 2))
8383

84-
const pkgManager = /pnpm/.test(process.env.npm_execpath)
84+
const pkgManager = (/pnpm/.test(process.env.npm_execpath) || /pnpm/.test(process.env.npm_config_user_agent))
8585
? 'pnpm'
8686
: /yarn/.test(process.env.npm_execpath) ? 'yarn' : 'npm'
8787

packages/slidev/node/plugins/preset.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import Prism from 'markdown-it-prism'
1010
import RemoteAssets, { DefaultRules } from 'vite-plugin-remote-assets'
1111
// @ts-expect-error
1212
import mila from 'markdown-it-link-attributes'
13-
import { notNullish } from '@slidev/client/node_modules/@antfu/utils/dist'
13+
import { notNullish } from '@antfu/utils'
1414
import { createConfigPlugin } from './config'
1515
import { createSlidesLoader } from './loaders'
1616
import { createMonacoLoader, transformMarkdownMonaco } from './monaco'

0 commit comments

Comments
 (0)