Skip to content

Commit

Permalink
fix: improve folder structure
Browse files Browse the repository at this point in the history
Signed-off-by: Abdelrahman Essawy <[email protected]>
  • Loading branch information
abdelrahman-essawy committed May 10, 2024
1 parent 9704f00 commit ce2a01d
Show file tree
Hide file tree
Showing 14 changed files with 19 additions and 12 deletions.
1 change: 1 addition & 0 deletions index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './libs/core';
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion libs/core/package.json → libs/events/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "core",
"name": "@enegix/events",
"version": "0.1.2",
"license": "MIT",
"type": "commonjs",
Expand Down
24 changes: 15 additions & 9 deletions libs/core/project.json → libs/events/project.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "core",
"name": "events",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/core/src",
"sourceRoot": "libs/events/src",
"projectType": "library",
"release": {
"version": {
Expand All @@ -15,12 +15,16 @@
"targets": {
"build": {
"executor": "@nx/js:tsc",
"outputs": ["{options.outputPath}"],
"outputs": [
"{options.outputPath}"
],
"options": {
"outputPath": "dist/libs/core",
"main": "libs/core/src/index.ts",
"tsConfig": "libs/core/tsconfig.lib.json",
"assets": ["libs/core/*.md"]
"outputPath": "dist/libs/events",
"main": "libs/events/src/index.ts",
"tsConfig": "libs/events/tsconfig.lib.json",
"assets": [
"libs/events/*.md"
]
}
},
"nx-release-publish": {
Expand All @@ -30,9 +34,11 @@
},
"test": {
"executor": "@nx/vite:test",
"outputs": ["{options.reportsDirectory}"],
"outputs": [
"{options.reportsDirectory}"
],
"options": {
"reportsDirectory": "../../coverage/libs/core"
"reportsDirectory": "../../coverage/libs/events"
}
}
}
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.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@enegix/source",
"name": "@enegix/events-source",
"scripts": {},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"skipDefaultLibCheck": true,
"baseUrl": ".",
"paths": {
"@enegix/events": ["libs/core/src/index.ts"],
"@enegix/events": ["libs/events/src/index.ts"]
}
},
"exclude": ["node_modules", "tmp"]
Expand Down

0 comments on commit ce2a01d

Please sign in to comment.