Explorar o código

fix: testing project packages

Karol Sójko %!s(int64=3) %!d(string=hai) anos
pai
achega
d818799418

+ 5 - 2
.github/workflows/api-gateway.release.yml

@@ -16,9 +16,12 @@ jobs:
 
     steps:
     - uses: actions/checkout@v3
-    - uses: actions/setup-node@v1
+    - name: Set up Node
+      uses: actions/setup-node@v3
       with:
-        node-version: '16.x'
+        registry-url: 'https://registry.npmjs.org'
+        node-version-file: '.nvmrc'
+    - run: yarn build
     - run: yarn lint:api-gateway
 
   publish-aws-ecr:

+ 5 - 2
.github/workflows/auth.release.yml

@@ -16,9 +16,12 @@ jobs:
 
     steps:
     - uses: actions/checkout@v3
-    - uses: actions/setup-node@v1
+    - name: Set up Node
+      uses: actions/setup-node@v3
       with:
-        node-version: '16.x'
+        registry-url: 'https://registry.npmjs.org'
+        node-version-file: '.nvmrc'
+    - run: yarn build
     - run: yarn lint:auth
     - run: yarn test:auth
 

+ 5 - 2
.github/workflows/files.release.yml

@@ -16,9 +16,12 @@ jobs:
 
     steps:
     - uses: actions/checkout@v3
-    - uses: actions/setup-node@v1
+    - name: Set up Node
+      uses: actions/setup-node@v3
       with:
-        node-version: '16.x'
+        registry-url: 'https://registry.npmjs.org'
+        node-version-file: '.nvmrc'
+    - run: yarn build
     - run: yarn lint:files
     - run: yarn test:files
 

+ 5 - 2
.github/workflows/scheduler.release.yml

@@ -16,9 +16,12 @@ jobs:
 
     steps:
     - uses: actions/checkout@v3
-    - uses: actions/setup-node@v1
+    - name: Set up Node
+      uses: actions/setup-node@v3
       with:
-        node-version: '16.x'
+        registry-url: 'https://registry.npmjs.org'
+        node-version-file: '.nvmrc'
+    - run: yarn build
     - run: yarn lint:scheduler
     - run: yarn test:scheduler
 

+ 5 - 2
.github/workflows/syncing-server.release.yml

@@ -16,10 +16,13 @@ jobs:
 
     steps:
     - uses: actions/checkout@v3
-    - uses: actions/setup-node@v1
+    - name: Set up Node
+      uses: actions/setup-node@v3
       with:
-        node-version: '16.x'
+        registry-url: 'https://registry.npmjs.org'
+        node-version-file: '.nvmrc'
     - run: yarn install --immutable
+    - run: yarn build
     - run: yarn lint:syncing-server
     - run: yarn test:syncing-server
 

+ 6 - 30
.pnp.cjs

@@ -2657,8 +2657,8 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
             ["@sentry/node", "npm:7.5.0"],\
             ["@standardnotes/analytics", "npm:1.6.0"],\
             ["@standardnotes/auth", "npm:3.19.4"],\
-            ["@standardnotes/domain-events", "npm:2.32.6"],\
-            ["@standardnotes/domain-events-infra", "npm:1.5.6"],\
+            ["@standardnotes/domain-events", "workspace:packages/domain-events"],\
+            ["@standardnotes/domain-events-infra", "workspace:packages/domain-events-infra"],\
             ["@standardnotes/time", "npm:1.7.1"],\
             ["@types/cors", "npm:2.8.12"],\
             ["@types/express", "npm:4.17.13"],\
@@ -2788,16 +2788,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
         }]\
       ]],\
       ["@standardnotes/domain-events", [\
-        ["npm:2.32.6", {\
-          "packageLocation": "./.yarn/cache/@standardnotes-domain-events-npm-2.32.6-62ab814dfe-1c5852e776.zip/node_modules/@standardnotes/domain-events/",\
-          "packageDependencies": [\
-            ["@standardnotes/domain-events", "npm:2.32.6"],\
-            ["@standardnotes/auth", "npm:3.19.4"],\
-            ["@standardnotes/features", "npm:1.50.0"],\
-            ["@standardnotes/scheduler", "npm:1.1.2"]\
-          ],\
-          "linkType": "HARD"\
-        }],\
         ["workspace:packages/domain-events", {\
           "packageLocation": "./packages/domain-events/",\
           "packageDependencies": [\
@@ -2817,20 +2807,6 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
         }]\
       ]],\
       ["@standardnotes/domain-events-infra", [\
-        ["npm:1.5.6", {\
-          "packageLocation": "./.yarn/cache/@standardnotes-domain-events-infra-npm-1.5.6-ebdfd48886-1497c315cd.zip/node_modules/@standardnotes/domain-events-infra/",\
-          "packageDependencies": [\
-            ["@standardnotes/domain-events-infra", "npm:1.5.6"],\
-            ["@standardnotes/domain-events", "workspace:packages/domain-events"],\
-            ["aws-sdk", "npm:2.1168.0"],\
-            ["ioredis", "npm:4.28.5"],\
-            ["newrelic", "npm:8.14.1"],\
-            ["reflect-metadata", "npm:0.1.13"],\
-            ["sqs-consumer", "virtual:ebdfd488865d9456b18fff44ee649dc6347aa1b7d6150f1584eca9a2699e53fdbc0fae568c1c65b07129863008ee252ab418fa625ad58e598be972f3eed3b8b9#npm:5.7.0"],\
-            ["winston", "npm:3.8.1"]\
-          ],\
-          "linkType": "HARD"\
-        }],\
         ["workspace:packages/domain-events-infra", {\
           "packageLocation": "./packages/domain-events-infra/",\
           "packageDependencies": [\
@@ -2846,7 +2822,7 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
             ["jest", "virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:27.5.1"],\
             ["newrelic", "npm:8.14.1"],\
             ["reflect-metadata", "npm:0.1.13"],\
-            ["sqs-consumer", "virtual:ebdfd488865d9456b18fff44ee649dc6347aa1b7d6150f1584eca9a2699e53fdbc0fae568c1c65b07129863008ee252ab418fa625ad58e598be972f3eed3b8b9#npm:5.7.0"],\
+            ["sqs-consumer", "virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:5.7.0"],\
             ["ts-jest", "virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:27.1.5"],\
             ["winston", "npm:3.8.1"]\
           ],\
@@ -12805,10 +12781,10 @@ function $$SETUP_STATE(hydrateRuntimeState, basePath) {
           ],\
           "linkType": "SOFT"\
         }],\
-        ["virtual:ebdfd488865d9456b18fff44ee649dc6347aa1b7d6150f1584eca9a2699e53fdbc0fae568c1c65b07129863008ee252ab418fa625ad58e598be972f3eed3b8b9#npm:5.7.0", {\
-          "packageLocation": "./.yarn/__virtual__/sqs-consumer-virtual-f46338421f/0/cache/sqs-consumer-npm-5.7.0-09231a3791-d1eb00cbc5.zip/node_modules/sqs-consumer/",\
+        ["virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:5.7.0", {\
+          "packageLocation": "./.yarn/__virtual__/sqs-consumer-virtual-860118dc53/0/cache/sqs-consumer-npm-5.7.0-09231a3791-d1eb00cbc5.zip/node_modules/sqs-consumer/",\
           "packageDependencies": [\
-            ["sqs-consumer", "virtual:ebdfd488865d9456b18fff44ee649dc6347aa1b7d6150f1584eca9a2699e53fdbc0fae568c1c65b07129863008ee252ab418fa625ad58e598be972f3eed3b8b9#npm:5.7.0"],\
+            ["sqs-consumer", "virtual:685a6222c3349423674bb7f0684ba34e2ab20912010f352e04dcf707a156e13183fc382e2417cb37a60f3e7b52fd0178c53181674890e1773eb83e190dc13378#npm:5.7.0"],\
             ["@types/aws-sdk", null],\
             ["aws-sdk", "npm:2.1168.0"],\
             ["debug", "virtual:b86a9fb34323a98c6519528ed55faa0d9b44ca8879307c0b29aa384bde47ff59a7d0c9051b31246f14521dfb71ba3c5d6d0b35c29fffc17bf875aa6ad977d9e8#npm:4.3.4"]\

BIN=BIN
.yarn/cache/@standardnotes-domain-events-infra-npm-1.5.6-ebdfd48886-1497c315cd.zip


BIN=BIN
.yarn/cache/@standardnotes-domain-events-npm-2.32.6-62ab814dfe-1c5852e776.zip


+ 2 - 2
packages/api-gateway/package.json

@@ -26,8 +26,8 @@
     "@sentry/node": "^7.3.0",
     "@standardnotes/analytics": "^1.6.0",
     "@standardnotes/auth": "3.19.4",
-    "@standardnotes/domain-events": "2.32.6",
-    "@standardnotes/domain-events-infra": "1.5.6",
+    "@standardnotes/domain-events": "workspace:*",
+    "@standardnotes/domain-events-infra": "workspace:*",
     "@standardnotes/time": "^1.7.1",
     "aws-sdk": "^2.1160.0",
     "axios": "0.24.0",

+ 2 - 2
packages/auth/package.json

@@ -37,8 +37,8 @@
     "@standardnotes/api": "^1.1.19",
     "@standardnotes/auth": "^3.19.4",
     "@standardnotes/common": "^1.23.1",
-    "@standardnotes/domain-events": "^2.35.0",
-    "@standardnotes/domain-events-infra": "^1.5.6",
+    "@standardnotes/domain-events": "workspace:*",
+    "@standardnotes/domain-events-infra": "workspace:*",
     "@standardnotes/features": "^1.47.0",
     "@standardnotes/responses": "^1.6.39",
     "@standardnotes/scheduler": "^1.1.2",

+ 2 - 2
packages/files/package.json

@@ -29,8 +29,8 @@
     "@sentry/node": "^7.3.0",
     "@standardnotes/auth": "^3.19.4",
     "@standardnotes/common": "^1.23.1",
-    "@standardnotes/domain-events": "^2.35.0",
-    "@standardnotes/domain-events-infra": "^1.5.6",
+    "@standardnotes/domain-events": "workspace:*",
+    "@standardnotes/domain-events-infra": "workspace:*",
     "@standardnotes/sncrypto-common": "^1.9.0",
     "@standardnotes/sncrypto-node": "^1.8.3",
     "@standardnotes/time": "^1.7.1",

+ 2 - 2
packages/scheduler/package.json

@@ -27,8 +27,8 @@
     "@newrelic/winston-enricher": "^2.1.0",
     "@sentry/node": "^7.3.0",
     "@standardnotes/common": "^1.23.1",
-    "@standardnotes/domain-events": "^2.35.0",
-    "@standardnotes/domain-events-infra": "^1.5.6",
+    "@standardnotes/domain-events": "workspace:*",
+    "@standardnotes/domain-events-infra": "workspace:*",
     "@standardnotes/scheduler": "^1.1.2",
     "@standardnotes/time": "^1.7.1",
     "aws-sdk": "^2.1158.0",

+ 2 - 2
packages/syncing-server/package.json

@@ -29,8 +29,8 @@
     "@standardnotes/analytics": "^1.6.0",
     "@standardnotes/auth": "^3.19.4",
     "@standardnotes/common": "^1.23.1",
-    "@standardnotes/domain-events": "^2.35.0",
-    "@standardnotes/domain-events-infra": "^1.5.6",
+    "@standardnotes/domain-events": "workspace:*",
+    "@standardnotes/domain-events-infra": "workspace:*",
     "@standardnotes/payloads": "^1.5.1",
     "@standardnotes/responses": "^1.6.39",
     "@standardnotes/settings": "1.15.0",

+ 12 - 38
yarn.lock

@@ -1954,8 +1954,8 @@ __metadata:
     "@sentry/node": ^7.3.0
     "@standardnotes/analytics": ^1.6.0
     "@standardnotes/auth": 3.19.4
-    "@standardnotes/domain-events": 2.32.6
-    "@standardnotes/domain-events-infra": 1.5.6
+    "@standardnotes/domain-events": "workspace:*"
+    "@standardnotes/domain-events-infra": "workspace:*"
     "@standardnotes/time": ^1.7.1
     "@types/cors": ^2.8.9
     "@types/express": ^4.17.11
@@ -2012,8 +2012,8 @@ __metadata:
     "@standardnotes/api": ^1.1.19
     "@standardnotes/auth": ^3.19.4
     "@standardnotes/common": ^1.23.1
-    "@standardnotes/domain-events": ^2.32.6
-    "@standardnotes/domain-events-infra": ^1.5.6
+    "@standardnotes/domain-events": "workspace:*"
+    "@standardnotes/domain-events-infra": "workspace:*"
     "@standardnotes/features": ^1.47.0
     "@standardnotes/responses": ^1.6.39
     "@standardnotes/scheduler": ^1.1.2
@@ -2091,7 +2091,7 @@ __metadata:
   languageName: node
   linkType: hard
 
-"@standardnotes/domain-events-infra@^1.5.6, @standardnotes/domain-events-infra@workspace:packages/domain-events-infra":
+"@standardnotes/domain-events-infra@workspace:*, @standardnotes/domain-events-infra@workspace:packages/domain-events-infra":
   version: 0.0.0-use.local
   resolution: "@standardnotes/domain-events-infra@workspace:packages/domain-events-infra"
   dependencies:
@@ -2112,22 +2112,7 @@ __metadata:
   languageName: unknown
   linkType: soft
 
-"@standardnotes/domain-events-infra@npm:1.5.6":
-  version: 1.5.6
-  resolution: "@standardnotes/domain-events-infra@npm:1.5.6"
-  dependencies:
-    "@standardnotes/domain-events": ^2.32.6
-    aws-sdk: ^2.1082.0
-    ioredis: ^4.28.5
-    newrelic: ^8.8.0
-    reflect-metadata: ^0.1.13
-    sqs-consumer: ^5.6.0
-    winston: ^3.6.0
-  checksum: 1497c315cd8d37842015990eeab05bec7e0b1193f26bd0fa3b0982a811d23a4e3cbcaa4702018249d781adddd191ceac3efc47f5f8566d91fff7c020de2ca04f
-  languageName: node
-  linkType: hard
-
-"@standardnotes/domain-events@^2.32.6, @standardnotes/domain-events@workspace:*, @standardnotes/domain-events@workspace:packages/domain-events":
+"@standardnotes/domain-events@workspace:*, @standardnotes/domain-events@workspace:packages/domain-events":
   version: 0.0.0-use.local
   resolution: "@standardnotes/domain-events@workspace:packages/domain-events"
   dependencies:
@@ -2144,17 +2129,6 @@ __metadata:
   languageName: unknown
   linkType: soft
 
-"@standardnotes/domain-events@npm:2.32.6":
-  version: 2.32.6
-  resolution: "@standardnotes/domain-events@npm:2.32.6"
-  dependencies:
-    "@standardnotes/auth": ^3.19.4
-    "@standardnotes/features": ^1.47.0
-    "@standardnotes/scheduler": ^1.1.2
-  checksum: 1c5852e776618d1505a0fc8e9f0166bf1459c0c05db67223092f41659ef1e5a83156a2886d717f74e57fa776cc20299538641adf4277e3d93567a25ef636253a
-  languageName: node
-  linkType: hard
-
 "@standardnotes/encryption@npm:^1.8.23":
   version: 1.12.0
   resolution: "@standardnotes/encryption@npm:1.12.0"
@@ -2189,8 +2163,8 @@ __metadata:
     "@standardnotes/auth": ^3.19.4
     "@standardnotes/common": ^1.23.1
     "@standardnotes/config": 2.4.3
-    "@standardnotes/domain-events": ^2.32.6
-    "@standardnotes/domain-events-infra": ^1.5.6
+    "@standardnotes/domain-events": "workspace:*"
+    "@standardnotes/domain-events-infra": "workspace:*"
     "@standardnotes/sncrypto-common": ^1.9.0
     "@standardnotes/sncrypto-node": ^1.8.3
     "@standardnotes/time": ^1.7.1
@@ -2274,8 +2248,8 @@ __metadata:
     "@newrelic/winston-enricher": ^2.1.0
     "@sentry/node": ^7.3.0
     "@standardnotes/common": ^1.23.1
-    "@standardnotes/domain-events": ^2.32.6
-    "@standardnotes/domain-events-infra": ^1.5.6
+    "@standardnotes/domain-events": "workspace:*"
+    "@standardnotes/domain-events-infra": "workspace:*"
     "@standardnotes/scheduler": ^1.1.2
     "@standardnotes/time": ^1.7.1
     "@types/ioredis": ^4.28.10
@@ -2380,8 +2354,8 @@ __metadata:
     "@standardnotes/analytics": ^1.6.0
     "@standardnotes/auth": ^3.19.4
     "@standardnotes/common": ^1.23.1
-    "@standardnotes/domain-events": ^2.32.6
-    "@standardnotes/domain-events-infra": ^1.5.6
+    "@standardnotes/domain-events": "workspace:*"
+    "@standardnotes/domain-events-infra": "workspace:*"
     "@standardnotes/payloads": ^1.5.1
     "@standardnotes/responses": ^1.6.39
     "@standardnotes/settings": 1.15.0