create-unibest 4.0.6 → 4.0.7
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 +2 -2
- package/features/i18n/hooks.js +7 -0
- package/features/login/hooks.js +7 -0
- package/package.json +1 -1
- package/features/i18n/hooks.ts +0 -9
- package/features/login/hooks.ts +0 -9
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { green as green5, yellow as yellow4 } from "kolorist";
|
|
|
6
6
|
import minimist from "minimist";
|
|
7
7
|
|
|
8
8
|
// package.json
|
|
9
|
-
var version = "4.0.
|
|
9
|
+
var version = "4.0.7";
|
|
10
10
|
var package_default = {
|
|
11
11
|
name: "create-unibest",
|
|
12
12
|
type: "module",
|
|
@@ -99,7 +99,7 @@ var __filename = fileURLToPath(import.meta.url);
|
|
|
99
99
|
var __dirname = path.dirname(__filename);
|
|
100
100
|
var FEATURES_DIR = path.resolve(__dirname, "..", "features");
|
|
101
101
|
async function loadFeatureHooks(featureName) {
|
|
102
|
-
const hooksPath = path.join(FEATURES_DIR, featureName, "hooks.
|
|
102
|
+
const hooksPath = path.join(FEATURES_DIR, featureName, "hooks.js");
|
|
103
103
|
if (!fs.existsSync(hooksPath)) {
|
|
104
104
|
return null;
|
|
105
105
|
}
|
package/package.json
CHANGED
package/features/i18n/hooks.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { FeatureContext } from '../../packages/cli/src/features/interface'
|
|
2
|
-
|
|
3
|
-
export async function preApply(ctx: FeatureContext) {
|
|
4
|
-
console.log(`[i18n] Pre-apply for ${ctx.projectPath}`)
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export async function postApply(ctx: FeatureContext) {
|
|
8
|
-
console.log(`[i18n] Post-apply for ${ctx.projectPath}`)
|
|
9
|
-
}
|
package/features/login/hooks.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { FeatureContext } from '../../packages/cli/src/features/interface'
|
|
2
|
-
|
|
3
|
-
export async function preApply(ctx: FeatureContext) {
|
|
4
|
-
console.log(`[login] Pre-apply for ${ctx.projectPath}`)
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export async function postApply(ctx: FeatureContext) {
|
|
8
|
-
console.log(`[login] Post-apply for ${ctx.projectPath}`)
|
|
9
|
-
}
|