Skip to content

Commit

Permalink
chore(shared): Relocate package from libs to packages (#6472)
Browse files Browse the repository at this point in the history
  • Loading branch information
rifont authored Sep 11, 2024
1 parent c2bd2cb commit 2acea62
Show file tree
Hide file tree
Showing 228 changed files with 265 additions and 281 deletions.
7 changes: 3 additions & 4 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@
"moby",
"Modiin",
"modlen",
"Mobishatra",
"mongod",
"mongosh",
"monokai",
Expand Down Expand Up @@ -749,13 +750,12 @@
".cspell.json",
"package.json",
"package-lock.json",
"yarn.lock",
"tsconfig.json",
"node_modules/**",
"pnpm-lock.yaml",
"pnpm-workspace.yaml",
"novu.code-workspace",
"packages/application-generic/src/.env.test",
"libs/application-generic/src/.env.test",
"packages/notification-center/src/i18n/languages/**",
"packages/notification-center/rollup.config.mjs",
"packages/js/tsup.config.ts",
Expand All @@ -766,7 +766,7 @@
".gitignore",
"angular.json",
"ng-package.json",
"libs/shared/src/types/timezones/timezones.types.ts",
"packages/shared/src/types/timezones/timezones.types.ts",
"*.riv",
"websockets",
".env",
Expand All @@ -775,7 +775,6 @@
".env.production",
".env.test",
".example.env",
"pnpm-lock.yaml",
"apps/web/env.sh",
"packages/js/src/ui/index.directcss",
"unreadRead",
Expand Down
2 changes: 1 addition & 1 deletion .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
'@novu/novui':
- libs/novui/**/*
'@novu/shared':
- libs/shared/**/*
- packages/shared/**/*
'@novu/notification-center':
- packages/notification-center/**/*
'@novu/notification-center-vue':
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/dev-deploy-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ on:
- main
paths:
- 'package.json'
- 'yarn.lock'
- 'pnpm-lock.yaml'
- 'apps/api/**'
- 'libs/dal/**'
- 'libs/shared/**'
- 'packages/application-generic/**'
- 'packages/shared/**'
- 'libs/application-generic/**'
env:
TF_WORKSPACE: novu-dev

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dev-deploy-inbound-mail.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- 'package.json'
- 'pnpm-lock.yaml'
- 'apps/inbound-mail/**'
- 'libs/shared/**'
- 'packages/shared/**'
- 'libs/testing/**'
env:
TF_WORKSPACE: novu-dev
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dev-deploy-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- main
paths:
- 'apps/web/**'
- 'libs/shared/**'
- 'packages/shared/**'

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dev-deploy-webhook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ on:
- main
paths:
- 'package.json'
- 'yarn.lock'
- 'pnpm-lock.yaml'
- 'apps/webhook/**'
- 'libs/dal/**'
- 'libs/shared/**'
- 'packages/shared/**'

jobs:
test_webhook:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dev-deploy-widget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
paths:
- 'apps/widget/**'
- 'apps/ws/**'
- 'libs/shared/**'
- 'packages/shared/**'

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/dev-deploy-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ on:
- main
paths:
- 'package.json'
- 'yarn.lock'
- 'pnpm-lock.yaml'
- 'apps/api/**'
- 'libs/dal/**'
- 'libs/shared/**'
- 'packages/shared/**'
- 'libs/testing/**'
- 'packages/application-generic/**'
- 'libs/application-generic/**'
- 'packages/stateless/**'
- 'packages/node/**'
env:
Expand Down
2 changes: 1 addition & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tasks:
command: redis-server
- name: Shared Library
init: gp sync-await setup
command: cd libs/shared && pnpm start
command: cd packages/shared && pnpm start
- name: DAL
init: gp sync-await setup
command: cd libs/dal && pnpm start
Expand Down
4 changes: 2 additions & 2 deletions .idea/novu.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .idea/runConfigurations/SHARED.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .idea/runConfigurations/SHARED_WEB.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .source
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
"start:dev"
],
"runtimeExecutable": "npm",
"cwd": "${workspaceFolder}/libs/shared",
"cwd": "${workspaceFolder}/packages/shared",
"skipFiles": [
"<node_internals>/**"
],
Expand Down
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"script": "start",
"isBackground": true,
"label": "SHARED",
"path": "/libs/shared",
"path": "/packages/shared",
"problemMatcher": "$tsc-watch"
},
{
Expand Down
2 changes: 1 addition & 1 deletion apps/inbound-mail/src/config/env.validators.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { CleanedEnv, cleanEnv, json, num, port, str, ValidatorSpec } from 'envalid';
import { StringifyEnv } from 'libs/shared/dist/cjs';
import { StringifyEnv } from '@novu/shared';

export function validateEnv() {
return cleanEnv(process.env, envValidators);
Expand Down
2 changes: 1 addition & 1 deletion apps/widget/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ COPY --chown=1000:1000 apps/widget ./apps/widget
COPY --chown=1000:1000 libs/dal ./libs/dal
COPY --chown=1000:1000 packages/client ./packages/client
COPY --chown=1000:1000 libs/testing ./libs/testing
COPY --chown=1000:1000 libs/shared ./libs/shared
COPY --chown=1000:1000 packages/shared ./packages/shared
COPY --chown=1000:1000 packages/notification-center ./packages/notification-center
COPY --chown=1000:1000 packages/stateless ./packages/stateless
COPY --chown=1000:1000 packages/node ./packages/node
Expand Down
2 changes: 1 addition & 1 deletion apps/ws/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ COPY --chown=1000:1000 package.json .

COPY --chown=1000:1000 apps/ws ./apps/ws
COPY --chown=1000:1000 libs/dal ./libs/dal
COPY --chown=1000:1000 libs/shared ./libs/shared
COPY --chown=1000:1000 packages/shared ./packages/shared
COPY --chown=1000:1000 libs/testing ./libs/testing
COPY --chown=1000:1000 libs/application-generic ./libs/application-generic
COPY --chown=1000:1000 packages/client ./packages/client
Expand Down
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export default tsEslint.config(
'!@novu/shared/utils',
'@novu/dal/*',
'*../libs/dal/*',
'*../libs/shared/*',
'*../packages/shared/*',
'*../libs/stateless/*',
],
},
Expand Down
2 changes: 1 addition & 1 deletion libs/embed/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ COPY --chown=1000:1000 package.json .

COPY --chown=1000:1000 libs/testing ./libs/testing
COPY --chown=1000:1000 libs/dal ./libs/dal
COPY --chown=1000:1000 libs/shared ./libs/shared
COPY --chown=1000:1000 packages/shared ./packages/shared
COPY --chown=1000:1000 packages/client ./packages/client
COPY --chown=1000:1000 packages/node ./packages/node
COPY --chown=1000:1000 libs/embed ./libs/embed
Expand Down
2 changes: 1 addition & 1 deletion novu.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
},
{
"name": "📦 @novu/shared",
"path": "libs/shared"
"path": "packages/shared"
},
{
"name": "📦 @novu/testing",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 2acea62

Please sign in to comment.