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:
codecalm 2025-12-24 00:52:02 +01:00
parent 3d949d93cf
commit 96251b717f
4 changed files with 13 additions and 14 deletions

View File

@ -46,12 +46,6 @@
"main": "./dist/index.js", "main": "./dist/index.js",
"module": "./dist/index.mjs", "module": "./dist/index.mjs",
"types": "./dist/index.d.ts", "types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^21.0.4", "@angular-devkit/build-angular": "^21.0.4",
"@angular/animations": "^21.0.6", "@angular/animations": "^21.0.6",

View File

@ -1,5 +1,6 @@
import * as icons from './icons'; import * as icons from './icons';
export * from './types';
export * from './lib/tabler-icon.component'; export * from './lib/tabler-icon.component';
export * from './lib/tabler-icon.module'; export * from './lib/tabler-icon.module';
export * from './lib/tabler-icon.config'; export * from './lib/tabler-icon.config';

View File

@ -5,10 +5,7 @@
"outDir": "./out-tsc/app", "outDir": "./out-tsc/app",
"types": [], "types": [],
"baseUrl": ".", "baseUrl": ".",
"paths": { "skipLibCheck": true
"@tabler/icons-angular": ["../../packages/icons-angular/src/public-api.ts"],
"@tabler/icons-angular/*": ["../../packages/icons-angular/src/*"]
}
}, },
"files": [ "files": [
"src/main.ts" "src/main.ts"
@ -17,7 +14,6 @@
"src/**/*.d.ts" "src/**/*.d.ts"
], ],
"exclude": [ "exclude": [
"**/*.spec.ts", "**/*.spec.ts"
"../../packages/icons-angular/src/**/*.spec.ts"
] ]
} }

View File

@ -21,6 +21,10 @@
"target": "ES2022", "target": "ES2022",
"module": "ES2022", "module": "ES2022",
"useDefineForClassFields": false, "useDefineForClassFields": false,
"baseUrl": ".",
"paths": {
"@tabler/icons-angular": ["../../packages/icons-angular/src/public-api.ts"]
},
"lib": [ "lib": [
"ES2022", "ES2022",
"dom" "dom"
@ -30,6 +34,10 @@
"enableI18nLegacyMessageIdFormat": false, "enableI18nLegacyMessageIdFormat": false,
"strictInjectionParameters": true, "strictInjectionParameters": true,
"strictInputAccessModifiers": true, "strictInputAccessModifiers": true,
"strictTemplates": true "strictTemplates": true,
} "skipTemplateCodegen": false
},
"exclude": [
"**/*.spec.ts"
]
} }