@@ -4,9 +4,8 @@ import babel from '@babel/core';
44import child_process from 'child_process' ;
55import esbuild from 'esbuild' ;
66import fs from 'fs' ;
7- import glob from 'glob' ;
7+ import { sync as globSync } from 'glob' ;
88import module from 'module' ;
9- import path from 'path' ;
109import { dirname , join , relative } from 'path' ;
1110import * as sass from 'sass' ;
1211import url from 'url' ;
@@ -51,8 +50,8 @@ async function main() {
5150 const specEntryPointFile = await createEntryPointSpecFile ( ) ;
5251
5352 // Copy tsconfig so that ESBuild can leverage its path mappings.
54- const esbuildTsconfig = path . join ( legacyOutputDir , 'tsconfig-esbuild.json' ) ;
55- await fs . promises . cp ( path . join ( packagesDir , 'bazel-tsconfig-build.json' ) , esbuildTsconfig ) ;
53+ const esbuildTsconfig = join ( legacyOutputDir , 'tsconfig-esbuild.json' ) ;
54+ await fs . promises . cp ( join ( packagesDir , 'bazel-tsconfig-build.json' ) , esbuildTsconfig ) ;
5655
5756 const result = await esbuild . build ( {
5857 bundle : true ,
@@ -83,7 +82,7 @@ async function main() {
8382 * explicitly added.
8483 */
8584async function compileSassFiles ( ) {
86- const sassFiles = glob . sync ( 'src/**/!(_*|theme).scss' , { cwd : projectDir , absolute : true } ) ;
85+ const sassFiles = globSync ( 'src/**/!(_*|theme).scss' , { cwd : projectDir , absolute : true } ) ;
8786 const writeTasks = [ ] ;
8887
8988 let count = 0 ;
@@ -132,7 +131,7 @@ async function compileProjectWithNgtsc() {
132131 * to bundle all specs in an IIFE file.
133132 */
134133async function createEntryPointSpecFile ( ) {
135- const testFiles = glob . sync ( '**/*.spec.js' , { absolute : true , cwd : legacyOutputDir } ) ;
134+ const testFiles = globSync ( '**/*.spec.js' , { absolute : true , cwd : legacyOutputDir } ) ;
136135
137136 let specEntryPointFile = `import './test/angular-test.init.ts';` ;
138137 let i = 0 ;
0 commit comments