Skip to content

Commit a68728f

Browse files
author
Guillaume Chau
committed
fix: wrong env var name
1 parent f8a6143 commit a68728f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/@nodepack/utils/src/deps.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ async function addRegistryToArgs (command, args, cliRegistry) {
6464

6565
function executeCommand (command, args, targetDir) {
6666
return new Promise((resolve, reject) => {
67-
const apiMode = process.env.VUE_CLI_API_MODE
67+
const apiMode = process.env.NODEPACK_API_MODE
6868

6969
if (apiMode) {
7070
if (command === 'npm') {

packages/@nodepack/utils/src/shouldUseTaobao.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ module.exports = async function shouldUseTaobao (command = 'npm') {
5757
return save(false)
5858
}
5959

60-
if (process.env.VUE_CLI_API_MODE) {
60+
if (process.env.NODEPACK_API_MODE) {
6161
return save(true)
6262
}
6363

0 commit comments

Comments
 (0)