| /*! |
| * Licensed to the Apache Software Foundation (ASF) under one or more |
| * contributor license agreements. See the NOTICE file distributed with |
| * this work for additional information regarding copyright ownership. |
| * The ASF licenses this file to you under the Apache License, Version 2.0 |
| * (the "License"); you may not use this file except in compliance with |
| * the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| /* |
| * tsconfig for emitting declaration files (.d.ts) consumed by api-extractor. |
| * Run: tsc -p tsconfig.dts.json |
| * Output goes to ./dts-build and preserves the source tree structure so that |
| * api-extractor can pick up dts-build/typescript/faces/api/_api.d.ts as its |
| * main entry point. |
| */ |
| { |
| "extends": "./tsconfig-myfaces.json", |
| "compilerOptions": { |
| "rootDir": ".", |
| "declaration": true, |
| "emitDeclarationOnly": true, |
| "declarationDir": "./dts-build", |
| "declarationMap": false, |
| "sourceMap": false, |
| "noEmit": false, |
| /* |
| * Runtime target stays es2015 (the shipped contract). The webpack build |
| * (tsconfig-myfaces.json) uses a deliberately minimal lib which ts-loader |
| * tolerates; tsc declaration emit needs the modern lib (Object.values, |
| * Array.includes/flat/flatMap) to resolve the source types. lib only |
| * affects type resolution here — it does not change the target or the |
| * emitted declarations. |
| */ |
| "target": "es2015", |
| "lib": ["es2019", "dom"], |
| "skipLibCheck": true, |
| /* Load the ambient build-only globals (Consumer, Options, Context, window.myfaces). */ |
| "types": ["node", "definitions"] |
| }, |
| "include": [ |
| "typescript/faces/api/**/*.ts", |
| "typescript/faces/impl/**/*.ts", |
| "typescript/faces/myfaces/**/*.ts", |
| "typescript/faces/@types/**/*.d.ts" |
| ], |
| "exclude": [ |
| "typescript/faces/test/**", |
| "typescript/mona_dish/index.ts", |
| "typescript/mona_dish/Messaging.ts", |
| "./**/*.spec.ts" |
| ] |
| } |