Upgrade Angular dependencies to version 21, update TypeScript configuration, and enhance icon imports in the icons-angular package for improved module resolution and clarity.
This commit is contained in:
parent
3e2a27cad2
commit
3d949d93cf
|
|
@ -20,7 +20,7 @@ const componentTemplate = ({ type, name, namePascal, children }) => {
|
||||||
const indexItemTemplate = ({
|
const indexItemTemplate = ({
|
||||||
_,
|
_,
|
||||||
namePascal
|
namePascal
|
||||||
}) => `export { default as ${namePascal}} from './Icon${namePascal}';`;
|
}) => `export { default as Icon${namePascal}} from './Icon${namePascal}';`;
|
||||||
|
|
||||||
const aliasTemplate = ({ fromPascal, toPascal }) => `export { default as Icon${fromPascal}} from './icons/Icon${toPascal}';\n`;
|
const aliasTemplate = ({ fromPascal, toPascal }) => `export { default as Icon${fromPascal}} from './icons/Icon${toPascal}';\n`;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,12 @@
|
||||||
"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",
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,8 @@
|
||||||
"downlevelIteration": true,
|
"downlevelIteration": true,
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"moduleResolution": "bundler",
|
"moduleResolution": "bundler",
|
||||||
|
"resolvePackageJsonExports": true,
|
||||||
|
"resolvePackageJsonImports": true,
|
||||||
"importHelpers": true,
|
"importHelpers": true,
|
||||||
"target": "es2017",
|
"target": "es2017",
|
||||||
"module": "es2020",
|
"module": "es2020",
|
||||||
|
|
|
||||||
3085
pnpm-lock.yaml
3085
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
|
@ -2,7 +2,8 @@
|
||||||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
||||||
"version": 1,
|
"version": 1,
|
||||||
"cli": {
|
"cli": {
|
||||||
"packageManager": "pnpm"
|
"packageManager": "pnpm",
|
||||||
|
"analytics": false
|
||||||
},
|
},
|
||||||
"newProjectRoot": "projects",
|
"newProjectRoot": "projects",
|
||||||
"projects": {
|
"projects": {
|
||||||
|
|
|
||||||
|
|
@ -10,23 +10,23 @@
|
||||||
"watch": "ng build --watch --configuration development"
|
"watch": "ng build --watch --configuration development"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/animations": "^17.3.11",
|
"@angular/animations": "^21.0.6",
|
||||||
"@angular/common": "^17.3.11",
|
"@angular/common": "^21.0.6",
|
||||||
"@angular/compiler": "^17.3.11",
|
"@angular/compiler": "^21.0.6",
|
||||||
"@angular/core": "^17.3.11",
|
"@angular/core": "^21.0.6",
|
||||||
"@angular/forms": "^17.3.11",
|
"@angular/forms": "^21.0.6",
|
||||||
"@angular/platform-browser": "^17.3.11",
|
"@angular/platform-browser": "^21.0.6",
|
||||||
"@angular/platform-browser-dynamic": "^17.3.11",
|
"@angular/platform-browser-dynamic": "^21.0.6",
|
||||||
"@angular/router": "^17.3.11",
|
"@angular/router": "^21.0.6",
|
||||||
"@tabler/icons-angular": "workspace:*",
|
"@tabler/icons-angular": "workspace:*",
|
||||||
"rxjs": "~7.8.0",
|
"rxjs": "~7.8.2",
|
||||||
"tslib": "^2.3.0",
|
"tslib": "^2.8.1",
|
||||||
"zone.js": "~0.14.3"
|
"zone.js": "~0.16.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "^17.3.8",
|
"@angular-devkit/build-angular": "^21.0.4",
|
||||||
"@angular/cli": "^17.3.8",
|
"@angular/cli": "^21.0.4",
|
||||||
"@angular/compiler-cli": "^17.3.11",
|
"@angular/compiler-cli": "^21.0.6",
|
||||||
"typescript": "~5.9.3"
|
"typescript": "~5.9.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
import { ApplicationConfig, importProvidersFrom } from '@angular/core';
|
import { ApplicationConfig, importProvidersFrom } from '@angular/core';
|
||||||
import { provideRouter } from '@angular/router';
|
import { provideRouter } from '@angular/router';
|
||||||
import { IconAB, IconAlertSmall, IconBadge8k, IconHome } from '@tabler/icons-angular/src/icons';
|
import { IconAB, IconAlertSmall, IconBadge8k, IconHome, TablerIconModule } from '@tabler/icons-angular';
|
||||||
import { TablerIconModule } from '@tabler/icons-angular/src/lib/tabler-icon.module';
|
|
||||||
|
|
||||||
import { routes } from './app.routes';
|
import { routes } from './app.routes';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,12 +3,21 @@
|
||||||
"extends": "./tsconfig.json",
|
"extends": "./tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "./out-tsc/app",
|
"outDir": "./out-tsc/app",
|
||||||
"types": []
|
"types": [],
|
||||||
|
"baseUrl": ".",
|
||||||
|
"paths": {
|
||||||
|
"@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"
|
||||||
],
|
],
|
||||||
"include": [
|
"include": [
|
||||||
"src/**/*.d.ts"
|
"src/**/*.d.ts"
|
||||||
|
],
|
||||||
|
"exclude": [
|
||||||
|
"**/*.spec.ts",
|
||||||
|
"../../packages/icons-angular/src/**/*.spec.ts"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,9 @@
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"declaration": false,
|
"declaration": false,
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "bundler",
|
||||||
|
"resolvePackageJsonExports": true,
|
||||||
|
"resolvePackageJsonImports": true,
|
||||||
"importHelpers": true,
|
"importHelpers": true,
|
||||||
"target": "ES2022",
|
"target": "ES2022",
|
||||||
"module": "ES2022",
|
"module": "ES2022",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue