Skip to content

Commit

Permalink
feat(typescript): generates the node project with the type "module"
Browse files Browse the repository at this point in the history
  • Loading branch information
murdos committed Aug 18, 2024
1 parent e622287 commit f0b5907
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public JHipsterModule buildModule(JHipsterModuleProperties properties) {
//@formatter:off
return moduleBuilder(properties)
.packageJson()
.addType("module")
.addDevDependency(packageName("typescript"), COMMON)
.addDevDependency(packageName("@tsconfig/recommended"), COMMON)
.addDevDependency(packageName("@typescript-eslint/eslint-plugin"), COMMON)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ void shouldCreateTypescriptModule() {

assertThatModuleWithFiles(module, packageJsonFile())
.hasFile("package.json")
.containing("\"type\": \"module\"")
.containing(nodeDependency("typescript"))
.containing(nodeDependency("@tsconfig/recommended"))
.containing(nodeDependency("@typescript-eslint/eslint-plugin"))
Expand Down

0 comments on commit f0b5907

Please sign in to comment.