[CLI] fix cli build (#22)

This commit is contained in:
Jonas Daniels
2022-08-30 03:46:56 +00:00
committed by GitHub
parent 60e1e706d9
commit b800302e4e
2 changed files with 13 additions and 7 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"thirdweb": patch
---
fix the build (ESM package)
+8 -7
View File
@@ -9,7 +9,6 @@ import generateDashboardUrl from "../helpers/generate-dashboard-url";
import chalk from "chalk";
import { Command } from "commander";
import open from "open";
import updateNotifier from "update-notifier";
const main = async () => {
const program = new Command();
@@ -25,12 +24,14 @@ $$$$$$\\ $$$$$$$\\ $$\\ $$$$$$\\ $$$$$$$ |$$\\ $$\\ $$\\ $$$$$$\\ $$$$
\\$$$$ |$$ | $$ |$$ |$$ | \\$$$$$$$ |\\$$$$$\\$$$$ |\\$$$$$$$\\ $$$$$$$ |
\\____/ \\__| \\__|\\__|\\__| \\_______| \\_____\\____/ \\_______|\\_______/ `);
console.info(`\n 💎 thirdweb-cli v${cliVersion} 💎\n`);
updateNotifier({
pkg,
shouldNotifyInNpmScript: true,
//check every time while we're still building the CLI
updateCheckInterval: 0,
}).notify();
import("update-notifier").then(({ default: updateNotifier }) => {
updateNotifier({
pkg,
shouldNotifyInNpmScript: true,
//check every time while we're still building the CLI
updateCheckInterval: 0,
}).notify();
});
program
.name("thirdweb-cli")