@mainset/cli 0.2.0-rc.1 → 0.2.0-rc.2
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
2
|
import path from 'path';
|
|
3
|
+
import { fileURLToPath } from 'url';
|
|
3
4
|
import { runtimePathById } from './path.mjs';
|
|
4
5
|
function resolveHostPackageNodeModulesPath(hostPackageName, dependencyPackageName) {
|
|
5
6
|
const hostPackageNodeModulesPath = path.resolve(runtimePathById.root, `node_modules/${hostPackageName}/node_modules`);
|
|
@@ -9,7 +10,7 @@ function resolveHostPackageNodeModulesPath(hostPackageName, dependencyPackageNam
|
|
|
9
10
|
// Otherwise, return just the package name (for packages installed from the registry)
|
|
10
11
|
return isNodeModulesLinkedOrWorkspace
|
|
11
12
|
? hostPackageDependencyPackagePath
|
|
12
|
-
: dependencyPackageName;
|
|
13
|
+
: fileURLToPath(import.meta.resolve(dependencyPackageName));
|
|
13
14
|
}
|
|
14
15
|
function resolveHostPackageBinForCLICommandPath(hostPackageName,
|
|
15
16
|
// dependencyPackageName: string,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mainset/cli",
|
|
3
|
-
"version": "0.2.0-rc.
|
|
3
|
+
"version": "0.2.0-rc.2",
|
|
4
4
|
"description": "A unified CLI tool for accelerating development, based on mainset vision of front-end infrastructure",
|
|
5
5
|
"homepage": "https://github.com/mainset/dev-stack-fe/tree/main/packages/cli",
|
|
6
6
|
"bugs": {
|