Skip to content

Commit 38b56e6

Browse files
committed
refactor: update npm registry config and code formatting
1 parent 9c59c79 commit 38b56e6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/treeshake-server/src/services/buildService.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ const installDependencies = async (cwd: string): Promise<void> => {
144144
{
145145
cwd,
146146
env: {
147-
npm_config_registry: 'https://registry.npmjs.org/',
147+
npm_config_registry:
148+
process.env.MF_NPM_REGISTRY || 'https://registry.npmjs.org/',
148149
},
149150
},
150151
);

packages/treeshake-server/template/re-shake-share/.npmrc

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)