@anu8151/adonisjs-blueprint 0.2.0 → 0.3.0

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,6 +1,9 @@
1
- import { t as stubsRoot } from "./main-1fZp_M_R.js";
1
+ import { t as stubsRoot } from "./main-YlRWYIC0.js";
2
2
  //#region configure.ts
3
3
  async function configure(command) {
4
+ /**
5
+ * Publish config file
6
+ */
4
7
  await (await command.createCodemods()).makeUsingStub(stubsRoot, "config.stub", {});
5
8
  }
6
9
  //#endregion
package/build/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as stubsRoot } from "./main-1fZp_M_R.js";
1
+ import { t as stubsRoot } from "./main-YlRWYIC0.js";
2
2
  import { configure } from "./configure.js";
3
3
  import { t as statementsRegistry } from "./statements_registry-DzyxAiKP.js";
4
4
  //#region index.ts
@@ -1,8 +1,10 @@
1
+ import { join } from "node:path";
2
+ import { fileURLToPath } from "node:url";
1
3
  //#region stubs/main.ts
2
4
  /**
3
5
  * Path to the root directory where the stubs are stored. We use
4
6
  * this path within commands and the configure hook
5
7
  */
6
- const stubsRoot = import.meta.dirname;
8
+ const stubsRoot = join(fileURLToPath(new URL("../", import.meta.url)), "stubs");
7
9
  //#endregion
8
10
  export { stubsRoot as t };
@@ -1,4 +1,4 @@
1
- import { t as BlueprintParser } from "../../parser-DJB5DEck.js";
1
+ import { t as BlueprintParser } from "../../parser-9Jvy2vOm.js";
2
2
  import { ModelGenerator } from "../generators/model_generator.js";
3
3
  import { MigrationGenerator } from "../generators/migration_generator.js";
4
4
  import { ControllerGenerator } from "../generators/controller_generator.js";
@@ -1,4 +1,4 @@
1
- import { t as stubsRoot } from "../../main-1fZp_M_R.js";
1
+ import { t as stubsRoot } from "../../main-YlRWYIC0.js";
2
2
  import { BaseCommand } from "@adonisjs/core/ace";
3
3
  //#region src/commands/stubs.ts
4
4
  var EjectStubs = class extends BaseCommand {
@@ -1,4 +1,4 @@
1
- import { t as stubsRoot } from "../../main-1fZp_M_R.js";
1
+ import { t as stubsRoot } from "../../main-YlRWYIC0.js";
2
2
  import { basename, dirname, isAbsolute } from "node:path";
3
3
  import { Codemods } from "@adonisjs/core/ace/codemods";
4
4
  //#region src/generators/base_generator.ts
@@ -1,2 +1,2 @@
1
- import { t as BlueprintParser } from "../parser-DJB5DEck.js";
1
+ import { t as BlueprintParser } from "../parser-9Jvy2vOm.js";
2
2
  export { BlueprintParser };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@anu8151/adonisjs-blueprint",
3
3
  "description": "Blueprint for AdonisJS 7",
4
- "version": "0.2.0",
4
+ "version": "0.3.0",
5
5
  "engines": {
6
6
  "node": ">=24.0.0"
7
7
  },
@@ -1,7 +1,7 @@
1
- import { existsSync, readFileSync } from "node:fs";
2
- import { parse } from "yaml";
3
1
  import { dirname, join } from "node:path";
4
2
  import { fileURLToPath } from "node:url";
3
+ import { existsSync, readFileSync } from "node:fs";
4
+ import { parse } from "yaml";
5
5
  //#region \0rolldown/runtime.js
6
6
  var __create = Object.create;
7
7
  var __defProp = Object.defineProperty;