@anaemia/cli 0.2.0 → 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.
@@ -6,6 +6,9 @@ import { generateSharedComponent, scaffoldFeature, scaffoldHook, scaffoldPage }
6
6
  import { execSync } from "node:child_process";
7
7
  import prompts from "prompts";
8
8
  import { transform } from "sucrase";
9
+ import { fileURLToPath } from "node:url";
10
+ const __filename = fileURLToPath(import.meta.url);
11
+ const __dirname = path.dirname(__filename);
9
12
  export function register(cli) {
10
13
  cli
11
14
  .command("create [target]", "initialize an application or generate domain features (e.g., feature:name)")
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@anaemia/cli",
3
- "version": "0.2.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "anaemia": "./dist/index.js"
7
7
  },
8
8
  "dependencies": {
9
- "@anaemia/bundler": "^0.2.0",
10
- "@anaemia/core": "^0.2.0",
9
+ "@anaemia/bundler": "^0.3.1",
10
+ "@anaemia/core": "^0.3.1",
11
11
  "@rspack/core": "^2.0.5",
12
12
  "@rspack/dev-server": "2.0.1",
13
13
  "cac": "^7.0.0",
@@ -7,6 +7,10 @@ import { generateSharedComponent, scaffoldFeature, scaffoldHook, scaffoldPage }
7
7
  import { execSync } from "node:child_process";
8
8
  import prompts from "prompts";
9
9
  import { transform } from "sucrase";
10
+ import { fileURLToPath } from "node:url";
11
+
12
+ const __filename = fileURLToPath(import.meta.url);
13
+ const __dirname = path.dirname(__filename);
10
14
 
11
15
  export function register(cli: CAC) {
12
16
  cli