@@ -452,6 +452,12 @@ describe('Linter', () => {
452
452
] ;
453
453
return json ;
454
454
} ) ;
455
+ // Set this to false for now until the `@nx/js:lib` generator is updated to include ts/swc helpers by default.
456
+ // TODO(jack): Remove this once the above is addressed in another PR.
457
+ updateJson ( `libs/${ mylib } /tsconfig.lib.json` , ( json ) => {
458
+ json . compilerOptions . importHelpers = false ;
459
+ return json ;
460
+ } ) ;
455
461
updateJson ( `libs/${ mylib } /project.json` , ( json ) => {
456
462
json . targets . lint . options . lintFilePatterns = [
457
463
`libs/${ mylib } /**/*.ts` ,
@@ -465,8 +471,7 @@ describe('Linter', () => {
465
471
it ( 'should report dependency check issues' , ( ) => {
466
472
const rootPackageJson = readJson ( 'package.json' ) ;
467
473
const nxVersion = rootPackageJson . devDependencies . nx ;
468
- const swcCoreVersion = rootPackageJson . devDependencies [ '@swc/core' ] ;
469
- const swcHelpersVersion = rootPackageJson . dependencies [ '@swc/helpers' ] ;
474
+ const tslibVersion = rootPackageJson . devDependencies [ 'tslib' ] ;
470
475
471
476
let out = runCLI ( `lint ${ mylib } ` , { silenceError : true } ) ;
472
477
expect ( out ) . toContain ( 'All files pass linting' ) ;
@@ -495,9 +500,6 @@ describe('Linter', () => {
495
500
{
496
501
"dependencies": {
497
502
"@nx/devkit": "${ nxVersion } ",
498
- "@swc/core": "${ swcCoreVersion } ",
499
- "@swc/helpers": "${ swcHelpersVersion } ",
500
- "nx": "${ nxVersion } ",
501
503
},
502
504
"name": "@proj/${ mylib } ",
503
505
"type": "commonjs",
0 commit comments