Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
Add windows compatibility. Upgrade lodash version
Browse files Browse the repository at this point in the history
  • Loading branch information
javierbrea committed Nov 1, 2019
1 parent 7de9580 commit 2e5fbcb
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 3 deletions.
70 changes: 70 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"chalk": "^2.4.2",
"fs-extra": "^7.0.1",
"globule": "^1.2.1",
"lodash": "^4.17.11",
"lodash": "^4.17.15",
"inquirer": "^6.2.2"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions src/npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const install = retrying => {
console.log("Reinstalling npm dependencies...");
const installProcess = childProcess.spawn("npm", ["i"], {
windowsHide: true,
shell: true,
env: {
...process.env,
FORCE_COLOR: true
Expand Down
2 changes: 1 addition & 1 deletion src/utils/packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const packagesToMap = packagesInfo => {
return packagesMap;
};

const packageFolder = packageJsonPath => packageJsonPath.split(path.sep)[0];
const packageFolder = packageJsonPath => packageJsonPath.split("/")[0];

const readAll = () => {
return paths.getWorkingPath().then(workingPath => {
Expand Down
2 changes: 1 addition & 1 deletion test/utils/packages.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ describe("packages", () => {
await packages.writePackageJson(fooFolder, fooPackage);
const writeCall = fsExtra.writeJson.getCall(0);
expect(writeCall.args[0]).toEqual(
expect.stringContaining("fixtures/foo-folder/package.json")
expect.stringContaining(["fixtures", "foo-folder", "package.json"].join(path.sep))
);
expect(writeCall.args[1]).toEqual(fooPackage);
});
Expand Down

0 comments on commit 2e5fbcb

Please sign in to comment.