-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add workspace definitions, update readme/devcontainer (#124)
Co-authored-by: Rob Venables <rob@rvenables.com>
- Loading branch information
Showing
8 changed files
with
54 additions
and
21 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
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,10 +1,15 @@ | ||
{ | ||
"$schema": "node_modules/lerna/schemas/lerna-schema.json", | ||
"packages": [ | ||
".", | ||
"components/*", | ||
"integrations/*", | ||
"examples/*" | ||
"components/models", | ||
"components/devtools", | ||
"components/core", | ||
"components/core-testutil", | ||
"integrations/google-cloud", | ||
"integrations/sql-database", | ||
"examples/gcp-cloudrun-postgres", | ||
"examples/local-starter" | ||
], | ||
"version": "0.7.1" | ||
"version": "0.7.1", | ||
"workspaces": true | ||
} |
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,23 +1,35 @@ | ||
{ | ||
"private": true, | ||
"name": "@opr/monorepo", | ||
"private": false, | ||
"scripts": { | ||
"lintchanged": "eslint $(git diff --diff-filter=ACMRTUXB --name-only HEAD | grep '.*\\.ts$' | xargs)" | ||
}, | ||
"devDependencies": { | ||
"@typescript-eslint/eslint-plugin": "^5.42.0", | ||
"@typescript-eslint/parser": "^5.44.0", | ||
"eslint": "^8.25.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-config-prettier": "^8.10.0", | ||
"eslint-plugin-header": "^3.1.1", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-prettier": "^4.2.1", | ||
"lerna": "^6.0.3" | ||
"lerna": "^8.1.2", | ||
"prettier": "^3.2.5" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/google/open-product-recovery.git" | ||
}, | ||
"engines": { | ||
"node": ">=12.0.0" | ||
} | ||
}, | ||
"workspaces": [ | ||
"components/models", | ||
"components/devtools", | ||
"components/core", | ||
"components/core-testutil", | ||
"integrations/google-cloud", | ||
"integrations/sql-database", | ||
"examples/gcp-cloudrun-postgres", | ||
"examples/local-starter" | ||
] | ||
} |
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,12 @@ | ||
sh ./clean.sh | ||
# Install will currently fail because the post-install "prepare" scripts just run | ||
# when that package's install script finishes. This forces the install command | ||
# to not run the post-install scripts. So we then separately run the compile. | ||
# This is discussed here: https://github.com/npm/cli/issues/3034 | ||
npm install --workspaces --ignore-scripts --include-workspace-root | ||
npm run compile --workspaces | ||
# TypeORM is currently unable to locate the sqlite driver when using workspaces | ||
# using a normal install. Calling rebuild here corrects this issue. | ||
npm rebuild | ||
|
||
|