diff --git a/package-lock.json b/package-lock.json index 8daab4e..2f2aadf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "@dfinity/identity": "^0.20.2", "@dfinity/principal": "^0.20.2", "@junobuild/admin": "^0.0.45", - "@junobuild/cli-config": "file:../juno-js/packages/cli-config", + "@junobuild/config": "file:../juno-js/packages/config", "@junobuild/core-peer": "^0.0.10", "@junobuild/utils": "^0.0.18", "conf": "^12.0.0", @@ -61,6 +61,11 @@ } }, "../juno-js/packages/cli-config": { + "version": "0.0.1", + "extraneous": true, + "license": "MIT" + }, + "../juno-js/packages/config": { "version": "0.0.1", "license": "MIT" }, @@ -1473,8 +1478,8 @@ "semver": "7.*" } }, - "node_modules/@junobuild/cli-config": { - "resolved": "../juno-js/packages/cli-config", + "node_modules/@junobuild/config": { + "resolved": "../juno-js/packages/config", "link": true }, "node_modules/@junobuild/core-peer": { @@ -7594,8 +7599,8 @@ "integrity": "sha512-7N7gk9VyYiKynOf8ij6rNJ7R6gXEUZC2JO0q9qdYA33Kx2rENN17geFbp04+15hoSsV4khW++liGIk0XF4lSRg==", "requires": {} }, - "@junobuild/cli-config": { - "version": "file:../juno-js/packages/cli-config" + "@junobuild/config": { + "version": "file:../juno-js/packages/config" }, "@junobuild/core-peer": { "version": "0.0.10", diff --git a/package.json b/package.json index 9e48806..f1fdc80 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "@dfinity/identity": "^0.20.2", "@dfinity/principal": "^0.20.2", "@junobuild/admin": "^0.0.45", - "@junobuild/cli-config": "file:../juno-js/packages/cli-config", + "@junobuild/config": "file:../juno-js/packages/config", "@junobuild/core-peer": "^0.0.10", "@junobuild/utils": "^0.0.18", "conf": "^12.0.0", diff --git a/src/configs/juno.config.ts b/src/configs/juno.config.ts index b5ca223..7c26bae 100644 --- a/src/configs/juno.config.ts +++ b/src/configs/juno.config.ts @@ -1,4 +1,4 @@ -import type {JunoConfigFnOrObject} from '@junobuild/cli-config'; +import type {JunoConfigFnOrObject} from '@junobuild/config'; import {existsSync} from 'node:fs'; import {access, readFile, writeFile} from 'node:fs/promises'; import {join} from 'node:path'; diff --git a/src/utils/node.utils.ts b/src/utils/node.utils.ts index 557e558..6fddbfd 100644 --- a/src/utils/node.utils.ts +++ b/src/utils/node.utils.ts @@ -1,7 +1,7 @@ import {transformFileSync} from '@babel/core'; import * as mod from '@babel/plugin-transform-modules-commonjs'; import * as ts from '@babel/preset-typescript'; -import {defineConfig, type JunoConfig} from '@junobuild/cli-config'; +import {defineConfig, type JunoConfig} from '@junobuild/config'; import {readFileSync} from 'node:fs'; /** @@ -48,7 +48,7 @@ export const nodeRequire = (id: string): {default: T} => { // We override defineConfig because the library is unknown in the module we are trying to load. // This need to be a function and not an arrow function because of the "arguments" Module._load = function (request: string): unknown { - if (request === '@junobuild/cli-config') { + if (request === '@junobuild/config') { return { defineConfig: (config: JunoConfig) => defineConfig(config) };