Skip to content
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.

Fix incorrect alternate modules location #89

Merged
merged 3 commits into from Jan 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/pancake/CHANGELOG.md
Expand Up @@ -6,6 +6,7 @@ Pancake

## Versions

* [v1.3.1 - Fix incorrect alternate modules](v131)
* [v1.3.0 - Multiple organisations can now be used](v130)
* [v1.2.5 - Update dependencies](v125)
* [v1.2.4 - Update dependencies](v124)
Expand All @@ -29,6 +30,11 @@ Pancake

----------------------------------------------------------------------------------------------------------------------------------------------------------------

## v1.3.1

- Fix incorrect alternative modules location


## v1.3.0

- Multiple organisations can be used, for example `@gov.au @nsw.gov.au`
Expand Down
1 change: 1 addition & 0 deletions packages/pancake/README.md
Expand Up @@ -58,6 +58,7 @@ To run the tests make sure you go to the monorepo this package came from and clo

## Release History

* v1.3.1 - Fix incorrect alternate modules
* v1.3.0 - Multiple organisations
* v1.2.5 - Update dependencies
* v1.2.4 - Update dependencies
Expand Down
2 changes: 1 addition & 1 deletion packages/pancake/package.json
@@ -1,6 +1,6 @@
{
"name": "@gov.au/pancake",
"version": "1.3.0",
"version": "1.3.1",
"description": "Pancake is an utility to make working with npm modules for the frontend sweet and seamlessly.",
"keywords": [
"npm",
Expand Down
2 changes: 1 addition & 1 deletion packages/pancake/src/modules.js
Expand Up @@ -98,7 +98,7 @@ export const GetModules = ( pkgPath, npmOrgs = '' ) => {
const altModulesPath = Path.normalize(`${ pkgPath }/../node_modules/${ npmOrg }/`);
if (Fs.existsSync(altModulesPath)) {
Log.verbose(`Also looking for pancake modules in: ${ Style.yellow(altModulesPath) }`);
modules = folders.concat(GetFolders(altModulesPath)); //all folders inside the selected path
modules = modules.concat(GetFolders(altModulesPath)); //all folders inside the selected path
}

return modules;
Expand Down