@akanjs/cli 0.0.114 → 0.0.116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.js +6 -6
- package/esm/index.js +6 -6
- package/package.json +1 -1
package/cjs/index.js
CHANGED
|
@@ -1996,8 +1996,8 @@ var getArgumentValue = async (argMeta, value, workspace) => {
|
|
|
1996
1996
|
throw new Error(`Invalid system type: ${argMeta.type}`);
|
|
1997
1997
|
};
|
|
1998
1998
|
var runCommands = async (...commands) => {
|
|
1999
|
-
const hasPackageJson = import_fs7.default.existsSync(`${__dirname}
|
|
2000
|
-
const version = hasPackageJson ? JSON.parse(import_fs7.default.readFileSync(`${__dirname}
|
|
1999
|
+
const hasPackageJson = import_fs7.default.existsSync(`${__dirname}/../package.json`);
|
|
2000
|
+
const version = hasPackageJson ? JSON.parse(import_fs7.default.readFileSync(`${__dirname}/../package.json`, "utf8")).version : "0.0.1";
|
|
2001
2001
|
import_commander.program.version(version).description("Akan CLI");
|
|
2002
2002
|
for (const command of commands) {
|
|
2003
2003
|
const targetMetas = getTargetMetas(command);
|
|
@@ -4088,10 +4088,10 @@ var ApplicationRunner = class {
|
|
|
4088
4088
|
resolve: {
|
|
4089
4089
|
alias: {
|
|
4090
4090
|
"@akanjs/config": `${akanjsPrefix}@akanjs/config`,
|
|
4091
|
-
"next/font/local": `${akanjsPrefix}@akanjs/client/
|
|
4092
|
-
"next/font/google": `${akanjsPrefix}@akanjs/client/
|
|
4093
|
-
"next/navigation": `${akanjsPrefix}@akanjs/client/
|
|
4094
|
-
"next/server": `${akanjsPrefix}@akanjs/client/
|
|
4091
|
+
"next/font/local": `${akanjsPrefix}@akanjs/client/src/createFont`,
|
|
4092
|
+
"next/font/google": `${akanjsPrefix}@akanjs/client/src/createFont`,
|
|
4093
|
+
"next/navigation": `${akanjsPrefix}@akanjs/client/src/navigation`,
|
|
4094
|
+
"next/server": `${akanjsPrefix}@akanjs/client/src/navigation`,
|
|
4095
4095
|
url: "url-polyfill",
|
|
4096
4096
|
vm: "vm-browserify",
|
|
4097
4097
|
process: "process/browser",
|
package/esm/index.js
CHANGED
|
@@ -2230,8 +2230,8 @@ var init_command = __esm({
|
|
|
2230
2230
|
throw new Error(`Invalid system type: ${argMeta.type}`);
|
|
2231
2231
|
};
|
|
2232
2232
|
runCommands = async (...commands) => {
|
|
2233
|
-
const hasPackageJson = fs9.existsSync(`${__dirname}
|
|
2234
|
-
const version = hasPackageJson ? JSON.parse(fs9.readFileSync(`${__dirname}
|
|
2233
|
+
const hasPackageJson = fs9.existsSync(`${__dirname}/../package.json`);
|
|
2234
|
+
const version = hasPackageJson ? JSON.parse(fs9.readFileSync(`${__dirname}/../package.json`, "utf8")).version : "0.0.1";
|
|
2235
2235
|
program.version(version).description("Akan CLI");
|
|
2236
2236
|
for (const command of commands) {
|
|
2237
2237
|
const targetMetas = getTargetMetas(command);
|
|
@@ -4407,10 +4407,10 @@ var init_application_runner = __esm({
|
|
|
4407
4407
|
resolve: {
|
|
4408
4408
|
alias: {
|
|
4409
4409
|
"@akanjs/config": `${akanjsPrefix}@akanjs/config`,
|
|
4410
|
-
"next/font/local": `${akanjsPrefix}@akanjs/client/
|
|
4411
|
-
"next/font/google": `${akanjsPrefix}@akanjs/client/
|
|
4412
|
-
"next/navigation": `${akanjsPrefix}@akanjs/client/
|
|
4413
|
-
"next/server": `${akanjsPrefix}@akanjs/client/
|
|
4410
|
+
"next/font/local": `${akanjsPrefix}@akanjs/client/src/createFont`,
|
|
4411
|
+
"next/font/google": `${akanjsPrefix}@akanjs/client/src/createFont`,
|
|
4412
|
+
"next/navigation": `${akanjsPrefix}@akanjs/client/src/navigation`,
|
|
4413
|
+
"next/server": `${akanjsPrefix}@akanjs/client/src/navigation`,
|
|
4414
4414
|
url: "url-polyfill",
|
|
4415
4415
|
vm: "vm-browserify",
|
|
4416
4416
|
process: "process/browser",
|