@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.
- package/build/configure.js +4 -1
- package/build/index.js +1 -1
- package/build/{main-1fZp_M_R.js → main-YlRWYIC0.js} +3 -1
- package/build/src/commands/build.js +1 -1
- package/build/src/commands/stubs.js +1 -1
- package/build/src/generators/base_generator.js +1 -1
- package/build/src/parser.js +1 -1
- package/package.json +1 -1
- package/build/{parser-DJB5DEck.js → parser-9Jvy2vOm.js} +2 -2
package/build/configure.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { t as stubsRoot } from "./main-
|
|
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,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.
|
|
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-
|
|
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-
|
|
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
|
package/build/src/parser.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as BlueprintParser } from "../parser-
|
|
1
|
+
import { t as BlueprintParser } from "../parser-9Jvy2vOm.js";
|
|
2
2
|
export { BlueprintParser };
|
package/package.json
CHANGED
|
@@ -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;
|