Skip to content

Commit

Permalink
fix(schematics): update copy-resources script to support Windows path (
Browse files Browse the repository at this point in the history
  • Loading branch information
gnastnosaj authored and hsuanxyz committed Jul 26, 2019
1 parent fa462c7 commit 915b67d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/schematics/copy-resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { buildConfig } from '../build-config';

const srcPath = path.join(buildConfig.projectDir, `schematics`);
const targetPath = path.join(buildConfig.publishDir, `schematics`);
const copyFilter = (p: string) => (/files\/__path__/.test(p) || !/.+\.ts/.test(p) || /.template$/.test(p));
const copyFilter = (p: string) => (/files(\/|\\)__path__/.test(p) || !/.+\.ts/.test(p) || /.template$/.test(p));

function mergeDemoCollection(): void {
const demoCollectionPath = path.resolve(targetPath, `demo/collection.json`);
Expand Down

0 comments on commit 915b67d

Please sign in to comment.