Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Apr 25, 2021
1 parent 2603f1f commit 3296c06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/create-app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ async function init() {

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

const pkgManager = /pnpm/.test(process.env.npm_execpath)
const pkgManager = (/pnpm/.test(process.env.npm_execpath) || /pnpm/.test(process.env.npm_config_user_agent))
? 'pnpm'
: /yarn/.test(process.env.npm_execpath) ? 'yarn' : 'npm'

Expand Down
2 changes: 1 addition & 1 deletion packages/slidev/node/plugins/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Prism from 'markdown-it-prism'
import RemoteAssets, { DefaultRules } from 'vite-plugin-remote-assets'
// @ts-expect-error
import mila from 'markdown-it-link-attributes'
import { notNullish } from '@slidev/client/node_modules/@antfu/utils/dist'
import { notNullish } from '@antfu/utils'
import { createConfigPlugin } from './config'
import { createSlidesLoader } from './loaders'
import { createMonacoLoader, transformMarkdownMonaco } from './monaco'
Expand Down

0 comments on commit 3296c06

Please sign in to comment.