Skip to content

Commit

Permalink
refactor(cli): fix release by adding allowSyntheticDefaultImports
Browse files Browse the repository at this point in the history
  • Loading branch information
Hristo Hristov authored and Hristo Hristov committed Sep 24, 2024
1 parent d205c44 commit 3eaa083
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions packages/cli/lib/cli.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { App, GoogleAnalytics, Util } from "@igniteui/cli-core";
// import yargs from "yargs";
import yargs from "yargs";
import {
add,
ADD_COMMAND_NAME,
Expand Down Expand Up @@ -42,7 +42,6 @@ export async function run(args = null) {
list.templateManager = templateManager;
upgrade.templateManager = templateManager;

const yargs = require("yargs");
const yargsModule = args ? yargs(args) : yargs;
await yargsModule
.scriptName("") // prevent the addition of the name of the executing script in the usage output
Expand Down
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
"./packages/cli"
]
},
"esModuleInterop": true
"esModuleInterop": true,
"moduleResolution": "node",
"allowSyntheticDefaultImports": true
},
"exclude": [
"output",
Expand Down

0 comments on commit 3eaa083

Please sign in to comment.