Skip to content

Commit

Permalink
Move smart-error-display into libs directory (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
AditechGH authored Oct 1, 2024
1 parent 0e6efef commit 9c2ca1d
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ If you encounter an issue, you can [create a ticket](https://github.com/AditechG

## Contributing

We welcome contributions! Please see the [CONTRIBUTING.md](../CONTRIBUTING.md) file for more information on how to get involved.
We welcome contributions! Please see the [CONTRIBUTING.md](../../CONTRIBUTING.md) file for more information on how to get involved.

## License

This library is licensed under the MIT License - see the [LICENSE](../LICENSE) file for details.
This library is licensed under the MIT License - see the [LICENSE](../../LICENSE) file for details.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const nx = require('@nx/eslint-plugin');
const baseConfig = require('../eslint.config.js');
const baseConfig = require('../../eslint.config.js');

module.exports = [
...baseConfig,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
export default {
displayName: 'smart-error-display',
preset: '../jest.preset.js',
preset: '../../jest.preset.js',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
coverageDirectory: '../coverage/smart-error-display',
coverageDirectory: '../../coverage/smart-error-display',
transform: {
'^.+\\.(ts|mjs|js|html)$': [
'jest-preset-angular',
Expand Down
7 changes: 7 additions & 0 deletions libs/smart-error-display/ng-package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../dist/libs/smart-error-display",
"lib": {
"entryFile": "src/index.ts"
}
}
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"name": "smart-error-display",
"$schema": "../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "smart-error-display/src",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "libs/smart-error-display/src",
"prefix": "smart",
"projectType": "library",
"tags": [],
"targets": {
"build": {
"executor": "@nx/angular:package",
"outputs": ["{workspaceRoot}/dist/{projectRoot}"],
"outputs": ["{workspaceRoot}/dist/libs/{projectRoot}"],
"options": {
"project": "smart-error-display/ng-package.json"
"project": "libs/smart-error-display/ng-package.json"
},
"configurations": {
"production": {
"tsConfig": "smart-error-display/tsconfig.lib.prod.json"
"tsConfig": "libs/smart-error-display/tsconfig.lib.prod.json"
},
"development": {
"tsConfig": "smart-error-display/tsconfig.lib.json"
"tsConfig": "libs/smart-error-display/tsconfig.lib.json"
}
},
"defaultConfiguration": "production"
Expand All @@ -26,7 +26,7 @@
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "smart-error-display/jest.config.ts"
"jestConfig": "libs/smart-error-display/jest.config.ts"
}
},
"lint": {
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"path": "./tsconfig.spec.json"
}
],
"extends": "../tsconfig.base.json",
"extends": "../../tsconfig.base.json",
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../dist/out-tsc",
"outDir": "../../dist/out-tsc",
"declaration": true,
"declarationMap": true,
"inlineSources": true,
Expand Down
File renamed without changes.
File renamed without changes.
7 changes: 0 additions & 7 deletions smart-error-display/ng-package.json

This file was deleted.

2 changes: 1 addition & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"paths": {
"@ngx-smart-forms/shared-utils": ["shared/src/index.ts"],
"@ngx-smart-forms/smart-error-display": [
"smart-error-display/src/index.ts"
"libs/smart-error-display/src/index.ts"
]
}
},
Expand Down

0 comments on commit 9c2ca1d

Please sign in to comment.