Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions core/tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
/*
* Shared base TypeScript configuration extended by every Ionic package and
* the repo root.
*
* This base lives in core/ rather than at the repo root because core is the
* only package guaranteed to be present in every build context. The Vercel
* preview builds core in isolation, mounted separately from the full repo
* clone, so a config at the repo root is not reachable from core's build.
* Since every package already depends on core, placing the base here lets all
* packages and the repo root extend it with a relative path that resolves in
* every environment.
*/
"compilerOptions": {
"alwaysStrict": true,
"strict": true,
"allowSyntheticDefaultImports": true,
"allowUnreachableCode": false,
"declaration": true,
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"importHelpers": true,
"lib": [
"dom",
"es2022"
],
"module": "esnext",
"moduleResolution": "bundler",
"noImplicitAny": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"pretty": true,
"removeComments": false,
"strictPropertyInitialization": false,
"target": "es2022"
}
}
32 changes: 8 additions & 24 deletions core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,18 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"strict": true,
"alwaysStrict": true,
"allowSyntheticDefaultImports": true,
"allowUnreachableCode": false,
"declaration": true,
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"assumeChangesOnlyAffectDirectDependencies": true,
"jsx": "react",
"jsxFactory": "h",
"jsxFragmentFactory": "Fragment",
// dom.iterable required for for...of iteration over DOM collections (NodeList, HTMLCollection)
// See: slot-mutation-controller.ts, popover.tsx, router/utils/dom.ts
"lib": [
"dom",
"dom.iterable",
"es2017",
"es2020",
"es2021",
"esnext"
"es2022"
],
"module": "esnext",
"moduleResolution": "node",
"noImplicitAny": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"jsx": "react",
"jsxFactory": "h",
"jsxFragmentFactory": "Fragment",
"outDir": ".tmp",
"pretty": true,
"removeComments": false,
"target": "es2017",
"baseUrl": ".",
"paths": {
"@utils/*": ["src/utils/*"],
Expand All @@ -37,7 +21,7 @@
}
},
"include": [
"src",
"src"
],
"exclude": [
"node_modules"
Expand Down
3 changes: 2 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/angular-server/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "../../tsconfig",
"extends": "../../core/tsconfig.base.json",
"compilerOptions": {
"module": "es2022",
"moduleResolution": "bundler",
Expand Down
32 changes: 2 additions & 30 deletions packages/angular/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion packages/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"sync": "./scripts/sync.sh",
"local.sync.and.pack": "./scripts/sync-and-pack.sh",
"test": "echo 'angular no tests yet'",
"tsc": "tsc -p .",
"validate": "npm i && npm run lint && npm run test && npm run build"
},
"exports": {
Expand Down
16 changes: 0 additions & 16 deletions packages/angular/scripts/package.json

This file was deleted.

22 changes: 0 additions & 22 deletions packages/angular/scripts/rollup.config.js

This file was deleted.

Loading