-
Notifications
You must be signed in to change notification settings - Fork 618
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(workspaces): rename allPackages to allWorkspaces
- Loading branch information
Showing
21 changed files
with
70 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// This file is require for running tests only!! | ||
const { allPackages } = require("@webiny/project-utils/packages"); | ||
const { allWorkspaces } = require("@webiny/project-utils/workspaces"); | ||
|
||
module.exports = { | ||
babelrc: true, | ||
babelrcRoots: allPackages() | ||
babelrcRoots: allWorkspaces() | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// This file is required for running tests only!! | ||
const { allPackages } = require("@webiny/project-utils/packages"); | ||
const { allWorkspaces } = require("@webiny/project-utils/workspaces"); | ||
|
||
module.exports = { | ||
babelrc: true, | ||
babelrcRoots: allPackages() | ||
babelrcRoots: allWorkspaces() | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
packages/cwp-template-aws/template/scripts/linkPackages.js
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
packages/cwp-template-aws/template/scripts/linkWorkspaces.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/** | ||
* This tool will re-link monorepo workspaces to one of the following directories (by priority): | ||
* - {workspace}/package.json -> publishConfig.directory | ||
* - lerna.json -> command.publish.contents | ||
* - workspace root directory | ||
*/ | ||
(async () => { | ||
const { linkWorkspaces } = require("@webiny/project-utils/workspaces"); | ||
await linkWorkspaces(); | ||
})(); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
const { linkWorkspaces } = require("./linkWorkspaces"); | ||
|
||
const allWorkspaces = () => { | ||
const path = require("path"); | ||
return require("get-yarn-workspaces")().map(pkg => pkg.replace(/\//g, path.sep)); | ||
}; | ||
|
||
module.exports = { allWorkspaces, linkWorkspaces }; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"name": "webiny-cz-adapter", | ||
"version": "1.0.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
{ | ||
"webiny-v4-sharp": { | ||
"us-east-1": "arn:aws:lambda:us-east-1:632417926021:layer:webiny-v4-sharp:1", | ||
"us-east-2": "arn:aws:lambda:us-east-2:632417926021:layer:webiny-v4-sharp:1", | ||
"us-west-1": "arn:aws:lambda:us-west-1:632417926021:layer:webiny-v4-sharp:1", | ||
"us-west-2": "arn:aws:lambda:us-west-2:632417926021:layer:webiny-v4-sharp:1", | ||
"ap-south-1": "arn:aws:lambda:ap-south-1:632417926021:layer:webiny-v4-sharp:1", | ||
"ap-northeast-2": "arn:aws:lambda:ap-northeast-2:632417926021:layer:webiny-v4-sharp:1", | ||
"ap-northeast-1": "arn:aws:lambda:ap-northeast-1:632417926021:layer:webiny-v4-sharp:1", | ||
"ca-central-1": "arn:aws:lambda:ca-central-1:632417926021:layer:webiny-v4-sharp:1", | ||
"eu-central-1": "arn:aws:lambda:eu-central-1:632417926021:layer:webiny-v4-sharp:1", | ||
"eu-west-1": "arn:aws:lambda:eu-west-1:632417926021:layer:webiny-v4-sharp:1", | ||
"eu-west-2": "arn:aws:lambda:eu-west-2:632417926021:layer:webiny-v4-sharp:1", | ||
"eu-west-3": "arn:aws:lambda:eu-west-3:632417926021:layer:webiny-v4-sharp:1", | ||
"eu-north-1": "arn:aws:lambda:eu-north-1:632417926021:layer:webiny-v4-sharp:1", | ||
"ap-southeast-1": "arn:aws:lambda:ap-southeast-1:632417926021:layer:webiny-v4-sharp:1", | ||
"ap-southeast-2": "arn:aws:lambda:ap-southeast-2:632417926021:layer:webiny-v4-sharp:1", | ||
"sa-east-1": "arn:aws:lambda:sa-east-1:632417926021:layer:webiny-v4-sharp:1" | ||
} | ||
"webiny-v4-sharp": { | ||
"us-east-1": "arn:aws:lambda:us-east-1:632417926021:layer:webiny-v4-sharp:1", | ||
"us-east-2": "arn:aws:lambda:us-east-2:632417926021:layer:webiny-v4-sharp:1", | ||
"us-west-1": "arn:aws:lambda:us-west-1:632417926021:layer:webiny-v4-sharp:1", | ||
"us-west-2": "arn:aws:lambda:us-west-2:632417926021:layer:webiny-v4-sharp:1", | ||
"ap-south-1": "arn:aws:lambda:ap-south-1:632417926021:layer:webiny-v4-sharp:1", | ||
"ap-northeast-2": "arn:aws:lambda:ap-northeast-2:632417926021:layer:webiny-v4-sharp:1", | ||
"ap-northeast-1": "arn:aws:lambda:ap-northeast-1:632417926021:layer:webiny-v4-sharp:1", | ||
"ca-central-1": "arn:aws:lambda:ca-central-1:632417926021:layer:webiny-v4-sharp:1", | ||
"eu-central-1": "arn:aws:lambda:eu-central-1:632417926021:layer:webiny-v4-sharp:1", | ||
"eu-west-1": "arn:aws:lambda:eu-west-1:632417926021:layer:webiny-v4-sharp:1", | ||
"eu-west-2": "arn:aws:lambda:eu-west-2:632417926021:layer:webiny-v4-sharp:1", | ||
"eu-west-3": "arn:aws:lambda:eu-west-3:632417926021:layer:webiny-v4-sharp:1", | ||
"eu-north-1": "arn:aws:lambda:eu-north-1:632417926021:layer:webiny-v4-sharp:1", | ||
"ap-southeast-1": "arn:aws:lambda:ap-southeast-1:632417926021:layer:webiny-v4-sharp:1", | ||
"ap-southeast-2": "arn:aws:lambda:ap-southeast-2:632417926021:layer:webiny-v4-sharp:1", | ||
"sa-east-1": "arn:aws:lambda:sa-east-1:632417926021:layer:webiny-v4-sharp:1" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/** | ||
* This tool will re-link monorepo workspaces to one of the following directories (by priority): | ||
* - {workspaces}/package.json -> publishConfig.directory | ||
* - lerna.json -> command.publish.contents | ||
* - workspace root directory | ||
*/ | ||
(async () => { | ||
const { linkWorkspaces } = require("../packages/project-utils/workspaces"); | ||
await linkWorkspaces(); | ||
})(); |