Skip to content

Commit

Permalink
refactor: resolve schema from custom-esbuild because root version m…
Browse files Browse the repository at this point in the history
…ay differ
  • Loading branch information
arturovt committed Mar 10, 2024
1 parent 48f4756 commit 68aaea6
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions packages/custom-esbuild/src/schemes.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
// Base schemes from [email protected]
import * as path from 'node:path';

module.exports = [
{
originalSchemaPath: '@angular-devkit/build-angular/src/builders/application/schema.json',
schemaExtensionPaths: [`${__dirname}/application/schema.ext.json`],
newSchemaPath: `${__dirname}/../dist/application/schema.json`,
originalSchemaPath: require.resolve(
'@angular-devkit/build-angular/src/builders/application/schema.json'
),
schemaExtensionPaths: [path.join(__dirname, 'application/schema.ext.json')],
newSchemaPath: path.resolve(__dirname, '../dist/application/schema.json'),
},
{
originalSchemaPath: '@angular-devkit/build-angular/src/builders/dev-server/schema.json',
schemaExtensionPaths: [`${__dirname}/dev-server/schema.ext.json`],
newSchemaPath: `${__dirname}/../dist/dev-server/schema.json`,
originalSchemaPath: require.resolve(
'@angular-devkit/build-angular/src/builders/dev-server/schema.json'
),
schemaExtensionPaths: [path.join(__dirname, 'dev-server/schema.ext.json')],
newSchemaPath: path.resolve(__dirname, '../dist/dev-server/schema.json'),
},
];

0 comments on commit 68aaea6

Please sign in to comment.