Skip to content

Commit 0671f4a

Browse files
feat: replace utils
1 parent a1597f0 commit 0671f4a

9 files changed

+9
-19
lines changed

package-lock.json

Lines changed: 1 addition & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
"node": ">=20"
3333
},
3434
"dependencies": {
35+
"@dfinity/utils": "^2.9.0",
3536
"@junobuild/cli-tools": "^0.1.0",
36-
"@junobuild/utils": "^0.1.0",
3737
"ora": "^8.1.1",
3838
"prompts": "^2.4.2",
3939
"tar-stream": "^3.1.7"

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {isNullish, nonNullish} from '@junobuild/utils';
1+
import {isNullish, nonNullish} from '@dfinity/utils';
22
import {cyan, green, grey, magenta, red} from 'kleur';
33
import {version} from '../package.json';
44
import {installCli} from './services/cli.services';

src/services/args.services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {nonNullish} from '@junobuild/utils';
1+
import {nonNullish} from '@dfinity/utils';
22
import {cyan, grey} from 'kleur';
33
import type {GeneratorInput} from '../types/generator';
44
import {NEW_CMD_LINE} from '../utils/prompts.utils';

src/services/deps.services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {spawn} from '@junobuild/cli-tools';
2-
import {nonNullish} from '@junobuild/utils';
2+
import {nonNullish} from '@dfinity/utils';
33
import ora from 'ora';
44
import type {PopulateInput} from '../types/generator';
55
import {whichPMRuns} from '../utils/pm.utils';

src/services/project.services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {fileExists, hasArgs} from '@junobuild/cli-tools';
2-
import {nonNullish} from '@junobuild/utils';
2+
import {nonNullish} from '@dfinity/utils';
33
import {join} from 'node:path';
44
import type {GeneratorInput} from '../types/generator';
55
import {confirm} from '../utils/prompts.utils';

src/services/prompt.services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {isNullish} from '@junobuild/utils';
1+
import {isNullish} from '@dfinity/utils';
22
import {red} from 'kleur';
33
import prompts from 'prompts';
44
import {TEMPLATES} from '../constants/templates';

src/services/template.services.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {nextArg} from '@junobuild/cli-tools';
2-
import {isNullish} from '@junobuild/utils';
2+
import {isNullish} from '@dfinity/utils';
33
import {TEMPLATES} from '../constants/templates';
44
import type {PopulateTemplate} from '../types/generator';
55
import {promptProjectKind, promptTemplate} from './prompt.services';

src/utils/pm.utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {isNullish} from '@junobuild/utils';
1+
import {isNullish} from '@dfinity/utils';
22

33
export type PM = 'npm' | 'yarn' | 'pnpm' | 'bun';
44

0 commit comments

Comments
 (0)