Skip to content

Commit

Permalink
fix: use more specific version ranges for generated typescript bundle…
Browse files Browse the repository at this point in the history
… dev dependencies
  • Loading branch information
Alex Van Camp committed Jun 20, 2023
1 parent e366f07 commit 6111f0e
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions src/generators/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,25 +291,23 @@ export default class AppGenerator extends Generator {
this.fs.copy(this.templatePath('.eslintignore'), this.destinationPath('.eslintignore'));
}

/* eslint-disable @typescript-eslint/naming-convention */
await this.addDependencies(['ts-node']);
await this.addDevDependencies([
'typescript',
'@types/node',
'@parcel/core',
'@parcel/config-default',
'@parcel/reporter-cli',
'@parcel/validator-typescript',
'glob',
'trash-cli',
'nodemon',
'concurrently',
]);
await this.addDevDependencies({
/* eslint-disable @typescript-eslint/naming-convention */
typescript: '^5.1.3',
'@types/node': '^18',
'@nodecg/types': this.props.compatibleRange ?? '*',
/* eslint-enable @typescript-eslint/naming-convention */
'@parcel/core': '*',
'@parcel/config-default': '*',
'@parcel/reporter-cli': '*',
'@parcel/validator-typescript': '*',
glob: '^10.2.7',
'trash-cli': '*',
nodemon: '*',
concurrently: '*',
});

/* eslint-enable @typescript-eslint/naming-convention */

if (this.props.react) {
await this.addDependencies(['react', 'react-dom']);
await this.addDependencies(['@types/react', '@types/react-dom']);
Expand Down

0 comments on commit 6111f0e

Please sign in to comment.