Skip to content

Commit

Permalink
fix: fixed issue with shadowing path module
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Sokolov committed Aug 14, 2019
1 parent 5cc67c9 commit b499974
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commands/archive-build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ const packageJsonPath = path.join(configs.cwd, packageJsonFileName);
fs.copy(configs.buildPath, path.join(pathToTempDir, configs.buildPath)),
fs.copy(nodeModulesPath, path.join(pathToTempDir, nodeModulesDirName)),
fs.copy(packageJsonPath, path.join(pathToTempDir, packageJsonFileName)),
...configs.additionalBuildPath.map(path => (
fs.copy(path.join(configs.cwd, path), path.join(pathToTempDir, path))
...configs.additionalBuildPath.map(additionalPath => (
fs.copy(path.join(configs.cwd, additionalPath), path.join(pathToTempDir, additionalPath))
))
]);
await tar.c(
Expand Down

0 comments on commit b499974

Please sign in to comment.