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 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.6";
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.ts");
102
+ const hooksPath = path.join(FEATURES_DIR, featureName, "hooks.js");
103
103
  if (!fs.existsSync(hooksPath)) {
104
104
  return null;
105
105
  }
@@ -0,0 +1,7 @@
1
+ export async function preApply(ctx) {
2
+ console.log(`[i18n] Pre-apply for ${ctx.projectPath}`)
3
+ }
4
+
5
+ export async function postApply(ctx) {
6
+ console.log(`[i18n] Post-apply for ${ctx.projectPath}`)
7
+ }
@@ -0,0 +1,7 @@
1
+ export async function preApply(ctx) {
2
+ console.log(`[login] Pre-apply for ${ctx.projectPath}`)
3
+ }
4
+
5
+ export async function postApply(ctx) {
6
+ console.log(`[login] Post-apply for ${ctx.projectPath}`)
7
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-unibest",
3
3
  "type": "module",
4
- "version": "4.0.6",
4
+ "version": "4.0.7",
5
5
  "packageManager": "pnpm@10.10.0",
6
6
  "description": "快速创建 unibest 项目的脚手架工具",
7
7
  "author": "feige996",
@@ -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
- }
@@ -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
- }