create-unibest 4.0.3 → 4.0.4
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/dist/index.js +3 -4
- package/features/i18n/hooks.ts +2 -2
- package/features/i18n/package.json +2 -2
- package/features/login/hooks.ts +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { green as green6, yellow as yellow5 } from "kolorist";
|
|
|
6
6
|
import minimist from "minimist";
|
|
7
7
|
|
|
8
8
|
// package.json
|
|
9
|
-
var version = "4.0.
|
|
9
|
+
var version = "4.0.4";
|
|
10
10
|
var package_default = {
|
|
11
11
|
name: "create-unibest",
|
|
12
12
|
type: "module",
|
|
@@ -116,12 +116,11 @@ function getAvailableFeatureNames() {
|
|
|
116
116
|
|
|
117
117
|
// src/utils/injector.ts
|
|
118
118
|
import fs2 from "fs";
|
|
119
|
-
import path2 from "path";
|
|
120
|
-
import { dirname } from "path";
|
|
119
|
+
import path2, { dirname } from "path";
|
|
121
120
|
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
122
121
|
var __filename2 = fileURLToPath2(import.meta.url);
|
|
123
122
|
var __dirname2 = dirname(__filename2);
|
|
124
|
-
var FEATURES_PATH = path2.join(__dirname2, "..", "..", "
|
|
123
|
+
var FEATURES_PATH = path2.join(__dirname2, "..", "..", "features");
|
|
125
124
|
var FeatureInjector = class {
|
|
126
125
|
constructor(projectPath) {
|
|
127
126
|
this.projectPath = projectPath;
|
package/features/i18n/hooks.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { FeatureContext } from '../../packages/cli/src/features/interface'
|
|
2
2
|
|
|
3
|
-
export
|
|
3
|
+
export async function preApply(ctx: FeatureContext) {
|
|
4
4
|
console.log(`[i18n] Pre-apply for ${ctx.projectPath}`)
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export async function postApply(ctx: FeatureContext) {
|
|
8
8
|
console.log(`[i18n] Post-apply for ${ctx.projectPath}`)
|
|
9
9
|
}
|
package/features/login/hooks.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { FeatureContext } from '../../packages/cli/src/features/interface'
|
|
2
2
|
|
|
3
|
-
export
|
|
3
|
+
export async function preApply(ctx: FeatureContext) {
|
|
4
4
|
console.log(`[login] Pre-apply for ${ctx.projectPath}`)
|
|
5
5
|
}
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export async function postApply(ctx: FeatureContext) {
|
|
8
8
|
console.log(`[login] Post-apply for ${ctx.projectPath}`)
|
|
9
9
|
}
|