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": {
"@electron/remote": "^2.0.8",
"@standardnotes/electron-clear-data": "1.1.1",
"@standardnotes/web": "^3.22.1",
"@standardnotes/web": "workspace:*",
"axios": "^0.27.2",
"compare-versions": "^4.1.3",
"decrypt": "github:standardnotes/decrypt#master",

View File

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

View File

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

View File

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

View File

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

View File

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