chore: use yarn workspace: protocol to resolve local packages

This commit is contained in:
Mo 2022-06-12 22:06:32 -05:00
parent 4703549a67
commit 30131089f6
No known key found for this signature in database
GPG key ID: 034B13B1644297E1
8 changed files with 26 additions and 21 deletions

5
constraints.pro Normal file
View file

@ -0,0 +1,5 @@
% This rule enforces that all workspaces must depend on other workspaces using `workspace:*`
gen_enforced_dependency(WorkspaceCwd, DependencyIdent, 'workspace:*', DependencyType) :-
workspace_has_dependency(WorkspaceCwd, DependencyIdent, _, DependencyType),
DependencyType \= 'peerDependencies',
workspace_ident(DependencyCwd, DependencyIdent).

View file

@ -36,7 +36,7 @@
"dependencies": { "dependencies": {
"@electron/remote": "^2.0.8", "@electron/remote": "^2.0.8",
"@standardnotes/electron-clear-data": "1.1.1", "@standardnotes/electron-clear-data": "1.1.1",
"@standardnotes/web": "^3.22.1", "@standardnotes/web": "workspace:*",
"axios": "^0.27.2", "axios": "^0.27.2",
"compare-versions": "^4.1.3", "compare-versions": "^4.1.3",
"decrypt": "github:standardnotes/decrypt#master", "decrypt": "github:standardnotes/decrypt#master",

View file

@ -33,7 +33,7 @@
"@react-navigation/stack": "^6.2.1", "@react-navigation/stack": "^6.2.1",
"@standardnotes/components": "^1.9.1", "@standardnotes/components": "^1.9.1",
"@standardnotes/filepicker": "^1.16.14", "@standardnotes/filepicker": "^1.16.14",
"@standardnotes/icons": "^1.4.0", "@standardnotes/icons": "workspace:*",
"@standardnotes/react-native-aes": "^1.4.3", "@standardnotes/react-native-aes": "^1.4.3",
"@standardnotes/react-native-textview": "1.0.2", "@standardnotes/react-native-textview": "1.0.2",
"@standardnotes/react-native-utils": "1.0.1", "@standardnotes/react-native-utils": "1.0.1",

View file

@ -10,7 +10,7 @@
}, },
"dependencies": { "dependencies": {
"@nanostores/react": "^0.2.0", "@nanostores/react": "^0.2.0",
"@standardnotes/icons": "^1.4.0", "@standardnotes/icons": "workspace:*",
"nanoid": "^3.3.4", "nanoid": "^3.3.4",
"nanostores": "^0.5.12", "nanostores": "^0.5.12",
"react": "link:../web/node_modules/react", "react": "link:../web/node_modules/react",

View file

@ -16,7 +16,7 @@
"build:server:all": "yarn workspaces foreach -ptR run build" "build:server:all": "yarn workspaces foreach -ptR run build"
}, },
"dependencies": { "dependencies": {
"@standardnotes/components-meta": "^0.2.0", "@standardnotes/components-meta": "workspace:*",
"@standardnotes/web": "^3.22.1" "@standardnotes/web": "workspace:*"
} }
} }

View file

@ -65,12 +65,12 @@
"@reach/visually-hidden": "^0.16.0", "@reach/visually-hidden": "^0.16.0",
"@standardnotes/components": "1.9.1", "@standardnotes/components": "1.9.1",
"@standardnotes/filepicker": "1.16.14", "@standardnotes/filepicker": "1.16.14",
"@standardnotes/icons": "^1.4.0", "@standardnotes/icons": "workspace:*",
"@standardnotes/services": "^1.13.14", "@standardnotes/services": "^1.13.14",
"@standardnotes/sncrypto-web": "1.10.1", "@standardnotes/sncrypto-web": "1.10.1",
"@standardnotes/snjs": "^2.115.9", "@standardnotes/snjs": "^2.115.9",
"@standardnotes/styles": "^1.2.1", "@standardnotes/styles": "workspace:*",
"@standardnotes/toast": "^1.2.0", "@standardnotes/toast": "workspace:*",
"@zip.js/zip.js": "^2.4.10", "@zip.js/zip.js": "^2.4.10",
"mobx": "^6.5.0", "mobx": "^6.5.0",
"mobx-react-lite": "^3.3.0", "mobx-react-lite": "^3.3.0",

View file

@ -5670,7 +5670,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@standardnotes/components-meta@^0.2.0, @standardnotes/components-meta@workspace:packages/components": "@standardnotes/components-meta@workspace:*, @standardnotes/components-meta@workspace:packages/components":
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@standardnotes/components-meta@workspace:packages/components" resolution: "@standardnotes/components-meta@workspace:packages/components"
dependencies: dependencies:
@ -5713,7 +5713,7 @@ __metadata:
"@commitlint/config-conventional": ^16.2.4 "@commitlint/config-conventional": ^16.2.4
"@electron/remote": ^2.0.8 "@electron/remote": ^2.0.8
"@standardnotes/electron-clear-data": 1.1.1 "@standardnotes/electron-clear-data": 1.1.1
"@standardnotes/web": ^3.22.1 "@standardnotes/web": "workspace:*"
"@types/lodash": ^4.14.182 "@types/lodash": ^4.14.182
"@types/mime-types": ^2.1.1 "@types/mime-types": ^2.1.1
"@types/node": 15 "@types/node": 15
@ -5886,7 +5886,7 @@ __metadata:
languageName: unknown languageName: unknown
linkType: soft linkType: soft
"@standardnotes/icons@^1.1.8, @standardnotes/icons@^1.4.0, @standardnotes/icons@workspace:packages/icons": "@standardnotes/icons@^1.1.8, @standardnotes/icons@workspace:*, @standardnotes/icons@workspace:packages/icons":
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@standardnotes/icons@workspace:packages/icons" resolution: "@standardnotes/icons@workspace:packages/icons"
dependencies: dependencies:
@ -5987,7 +5987,7 @@ __metadata:
"@standardnotes/components": ^1.9.1 "@standardnotes/components": ^1.9.1
"@standardnotes/config": ^2.4.3 "@standardnotes/config": ^2.4.3
"@standardnotes/filepicker": ^1.16.14 "@standardnotes/filepicker": ^1.16.14
"@standardnotes/icons": ^1.4.0 "@standardnotes/icons": "workspace:*"
"@standardnotes/react-native-aes": ^1.4.3 "@standardnotes/react-native-aes": ^1.4.3
"@standardnotes/react-native-textview": 1.0.2 "@standardnotes/react-native-textview": 1.0.2
"@standardnotes/react-native-utils": 1.0.1 "@standardnotes/react-native-utils": 1.0.1
@ -6235,7 +6235,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@standardnotes/styles@^1.2.1, @standardnotes/styles@workspace:packages/styles": "@standardnotes/styles@workspace:*, @standardnotes/styles@workspace:packages/styles":
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@standardnotes/styles@workspace:packages/styles" resolution: "@standardnotes/styles@workspace:packages/styles"
dependencies: dependencies:
@ -6256,12 +6256,12 @@ __metadata:
languageName: unknown languageName: unknown
linkType: soft linkType: soft
"@standardnotes/toast@^1.2.0, @standardnotes/toast@workspace:packages/toast": "@standardnotes/toast@workspace:*, @standardnotes/toast@workspace:packages/toast":
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@standardnotes/toast@workspace:packages/toast" resolution: "@standardnotes/toast@workspace:packages/toast"
dependencies: dependencies:
"@nanostores/react": ^0.2.0 "@nanostores/react": ^0.2.0
"@standardnotes/icons": ^1.4.0 "@standardnotes/icons": "workspace:*"
"@types/react": "link:../web/node_modules/@types/react" "@types/react": "link:../web/node_modules/@types/react"
"@types/react-dom": "link:../web/node_modules/@types/react-dom" "@types/react-dom": "link:../web/node_modules/@types/react-dom"
eslint: "*" eslint: "*"
@ -6299,12 +6299,12 @@ __metadata:
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@standardnotes/web-server@workspace:packages/web-server" resolution: "@standardnotes/web-server@workspace:packages/web-server"
dependencies: dependencies:
"@standardnotes/components-meta": ^0.2.0 "@standardnotes/components-meta": "workspace:*"
"@standardnotes/web": ^3.22.1 "@standardnotes/web": "workspace:*"
languageName: unknown languageName: unknown
linkType: soft linkType: soft
"@standardnotes/web@^3.22.1, @standardnotes/web@workspace:packages/web": "@standardnotes/web@workspace:*, @standardnotes/web@workspace:packages/web":
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@standardnotes/web@workspace:packages/web" resolution: "@standardnotes/web@workspace:packages/web"
dependencies: dependencies:
@ -6322,12 +6322,12 @@ __metadata:
"@reach/visually-hidden": ^0.16.0 "@reach/visually-hidden": ^0.16.0
"@standardnotes/components": 1.9.1 "@standardnotes/components": 1.9.1
"@standardnotes/filepicker": 1.16.14 "@standardnotes/filepicker": 1.16.14
"@standardnotes/icons": ^1.4.0 "@standardnotes/icons": "workspace:*"
"@standardnotes/services": ^1.13.14 "@standardnotes/services": ^1.13.14
"@standardnotes/sncrypto-web": 1.10.1 "@standardnotes/sncrypto-web": 1.10.1
"@standardnotes/snjs": ^2.115.9 "@standardnotes/snjs": ^2.115.9
"@standardnotes/styles": ^1.2.1 "@standardnotes/styles": "workspace:*"
"@standardnotes/toast": ^1.2.0 "@standardnotes/toast": "workspace:*"
"@types/jest": ^27.4.1 "@types/jest": ^27.4.1
"@types/react": ^17.0.42 "@types/react": ^17.0.42
"@types/react-dom": ^18.0.5 "@types/react-dom": ^18.0.5