Refactor icons-angular package configuration by removing exports from package.json, adding type exports in public-api.ts, and updating TypeScript configuration to skip library checks and exclude spec files for cleaner builds.
This commit is contained in:
parent
3d949d93cf
commit
96251b717f
|
|
@ -46,12 +46,6 @@
|
|||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.mjs",
|
||||
"types": "./dist/index.d.ts",
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"@angular-devkit/build-angular": "^21.0.4",
|
||||
"@angular/animations": "^21.0.6",
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import * as icons from './icons';
|
||||
|
||||
export * from './types';
|
||||
export * from './lib/tabler-icon.component';
|
||||
export * from './lib/tabler-icon.module';
|
||||
export * from './lib/tabler-icon.config';
|
||||
|
|
|
|||
|
|
@ -5,10 +5,7 @@
|
|||
"outDir": "./out-tsc/app",
|
||||
"types": [],
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@tabler/icons-angular": ["../../packages/icons-angular/src/public-api.ts"],
|
||||
"@tabler/icons-angular/*": ["../../packages/icons-angular/src/*"]
|
||||
}
|
||||
"skipLibCheck": true
|
||||
},
|
||||
"files": [
|
||||
"src/main.ts"
|
||||
|
|
@ -17,7 +14,6 @@
|
|||
"src/**/*.d.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"**/*.spec.ts",
|
||||
"../../packages/icons-angular/src/**/*.spec.ts"
|
||||
"**/*.spec.ts"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,6 +21,10 @@
|
|||
"target": "ES2022",
|
||||
"module": "ES2022",
|
||||
"useDefineForClassFields": false,
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@tabler/icons-angular": ["../../packages/icons-angular/src/public-api.ts"]
|
||||
},
|
||||
"lib": [
|
||||
"ES2022",
|
||||
"dom"
|
||||
|
|
@ -30,6 +34,10 @@
|
|||
"enableI18nLegacyMessageIdFormat": false,
|
||||
"strictInjectionParameters": true,
|
||||
"strictInputAccessModifiers": true,
|
||||
"strictTemplates": true
|
||||
}
|
||||
"strictTemplates": true,
|
||||
"skipTemplateCodegen": false
|
||||
},
|
||||
"exclude": [
|
||||
"**/*.spec.ts"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue