I have created an Angular library. I'm using ng-packagr to build the library. When I am building the library with ng-packagr it creates the .metada.json for AOT in the directory where the public_api.ts file exists.
Can we change the .metdata.json generated directory to be inside the 'dist' folder?
ng-package.json
{
"$schema": "./node_modules/ng-packagr/ng-package.schema.json",
"lib": {
"entryFile": "public_api.ts",
"languageLevel": [
"dom",
"es2017"
]
},
"whitelistedNonPeerDependencies": [
"@angular/*",
"core-js",
"rxjs",
"zone.js",
"moment",
"aws-sdk"
]
}
tsconfig.json
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": ".",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "commonjs",
"moduleResolution": "node",
"rootDir": ".",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"inlineSources": true,
"skipLibCheck": true,
"noImplicitAny": false,
"declaration": false,
"target": "es5",
"lib": [
"es7",
"dom"
],
"typeRoots": [
"node_modules/@types"
],
"types": [
"node",
"jasmine"
]
},
"angularCompilerOptions": {
"skipTemplateCodegen": true,
"strictMetadataEmit": true,
"fullTemplateTypeCheck": true
},
"exclude": [
"node_modules"
]
}