@mainset/cli 0.3.0-rc.2 → 0.3.1

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,8 +1,8 @@
1
+ import fs from 'fs';
1
2
  import { runtimePathById } from '../../runtime/index.mjs';
2
- import { execImmediateCommand } from '../../utils/index.mjs';
3
3
  // Cleanup
4
4
  function execImmediatePurgeDist() {
5
5
  console.log('🧹 Cleaning dist folder ...');
6
- execImmediateCommand(`rm -rf ${runtimePathById.dist}`);
6
+ fs.rmSync(runtimePathById.dist, { recursive: true, force: true });
7
7
  }
8
8
  export { execImmediatePurgeDist };
@@ -34,10 +34,12 @@ cliCommandName) {
34
34
  const hostPackageDependencyBinCLICommandPath = path.resolve(runtimePathById.root, `node_modules/${hostPackageName}/node_modules/.bin/${cliCommandName}`);
35
35
  // Return the full path if the dependency is linked or part of a workspace (nested under the host package)
36
36
  if (fs.existsSync(hostPackageDependencyBinCLICommandPath)) {
37
+ // !IMPORTANT: required for development mode in pnpm workspaces with symlinks {dev-stack-fe} project compilation
37
38
  return fileURLToPath(import.meta.resolve(hostPackageDependencyBinCLICommandPath));
38
39
  }
39
40
  // Otherwise, return the path to the dependency in the root node_modules (for registry-installed packages)
40
41
  const dependencyBinCLICommandPath = path.resolve(runtimePathById.root, `node_modules/.bin/${cliCommandName}`);
41
- return fileURLToPath(import.meta.resolve(dependencyBinCLICommandPath));
42
+ // return fileURLToPath(import.meta.resolve(dependencyBinCLICommandPath));
43
+ return import.meta.resolve(dependencyBinCLICommandPath);
42
44
  }
43
45
  export { resolveHostPackageBinForCLICommandPath, resolveHostPackageNodeModulesPath, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mainset/cli",
3
- "version": "0.3.0-rc.2",
3
+ "version": "0.3.1",
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": {
@@ -31,19 +31,19 @@
31
31
  "ms-cli": "./dist/esm/mainset-cli.mjs"
32
32
  },
33
33
  "dependencies": {
34
- "@dotenvx/dotenvx": "^1.47.2",
35
- "@types/node": "^24.0.3",
36
- "commander": "^14.0.0",
34
+ "@dotenvx/dotenvx": "^1.51.0",
35
+ "@types/node": "^24.7.0",
36
+ "commander": "^14.0.1",
37
37
  "cors": "^2.8.5",
38
- "cross-env": "^7.0.3",
38
+ "cross-env": "^10.1.0",
39
39
  "express": "^5.1.0",
40
40
  "http-proxy-middleware": "^3.0.5"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/cors": "^2.8.19",
44
44
  "@types/express": "^5.0.3",
45
- "@types/node": "^24.0.3",
46
- "@mainset/dev-stack-fe": "^0.2.0-rc.2"
45
+ "@types/node": "^24.7.0",
46
+ "@mainset/dev-stack-fe": "^0.2.0"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "@mainset/dev-stack-fe": "^0.2.0"