build: tsconfig shared/

This commit is contained in:
eneller
2026-03-05 23:39:42 +01:00
parent 0dd4b6590d
commit 4f206d9ad9
5 changed files with 24 additions and 3 deletions

View File

@@ -0,0 +1,16 @@
import { TestBed } from '@angular/core/testing';
import { DataService } from './data';
describe('Data', () => {
let service: DataService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(DataService);
});
it('should be created', () => {
expect(service).toBeTruthy();
});
});

View File

@@ -0,0 +1,6 @@
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root',
})
export class DataService {}

View File

@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.json",
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc/shared",
"declaration": true,
@@ -8,4 +8,3 @@
"include": ["src/**/*.ts"],
"exclude": ["node_modules"]
}

View File

@@ -10,7 +10,7 @@
"module": "es2022",
"lib": ["es2022", "dom"],
"paths": {
"@shared/*": ["shared/*"]
"@shared/*": ["shared/src/*"]
}
},
"exclude": ["node_modules"]