Skip to content

Commit 24e534b

Browse files
authored
Merge pull request #35 from hyperweb-io/update-add-protod
Update add protod
2 parents f8a5635 + 4ee413e commit 24e534b

File tree

3 files changed

+14
-4
lines changed

3 files changed

+14
-4
lines changed

packages/create-interchain-app/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
"typescript": "^5.1.6"
6363
},
6464
"dependencies": {
65+
"@cosmology/telescope": "^1.12.4",
6566
"ansi-colors": "4.1.3",
6667
"dargs": "7.0.0",
6768
"fuzzy": "0.1.3",
+12-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
import { CIA_URL } from "./constants";
22
import { createGitApp } from "./git-cia-template";
3+
import protodCommand from '@cosmology/telescope/main/commands/download'
34
export const cli = async (argv, version) => {
4-
const repo = argv.repo ?? CIA_URL;
5-
const createCosmosApp = createGitApp(repo, version);
6-
await createCosmosApp(argv);
5+
switch (argv._[0]) {
6+
case 'protod':
7+
await protodCommand(argv);
8+
break;
9+
default: {
10+
const repo = argv.repo ?? CIA_URL;
11+
const createCosmosApp = createGitApp(repo, version);
12+
await createCosmosApp(argv);
13+
break;
14+
}
15+
}
716
};

packages/create-interchain-app/tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"baseUrl": ".",
4-
"rootDir": "src",
4+
"rootDir": ".",
55
"skipLibCheck": true,
66
"emitDeclarationOnly": false,
77
"declaration": true,

0 commit comments

Comments
 (0)