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 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.3";
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, "..", "..", "..", "features");
123
+ var FEATURES_PATH = path2.join(__dirname2, "..", "..", "features");
125
124
  var FeatureInjector = class {
126
125
  constructor(projectPath) {
127
126
  this.projectPath = projectPath;
@@ -1,9 +1,9 @@
1
1
  import type { FeatureContext } from '../../packages/cli/src/features/interface'
2
2
 
3
- export const preApply = async (ctx: FeatureContext) => {
3
+ export async function preApply(ctx: FeatureContext) {
4
4
  console.log(`[i18n] Pre-apply for ${ctx.projectPath}`)
5
5
  }
6
6
 
7
- export const postApply = async (ctx: FeatureContext) => {
7
+ export async function postApply(ctx: FeatureContext) {
8
8
  console.log(`[i18n] Post-apply for ${ctx.projectPath}`)
9
9
  }
@@ -3,7 +3,7 @@
3
3
  "version": "1.0.0",
4
4
  "description": "unibest i18n feature",
5
5
  "dependencies": {
6
- "vue-i18n": "^9.0.0",
7
- "dayjs": "^1.11.0"
6
+ "dayjs": "^1.11.0",
7
+ "vue-i18n": "^9.0.0"
8
8
  }
9
9
  }
@@ -1,9 +1,9 @@
1
1
  import type { FeatureContext } from '../../packages/cli/src/features/interface'
2
2
 
3
- export const preApply = async (ctx: FeatureContext) => {
3
+ export async function preApply(ctx: FeatureContext) {
4
4
  console.log(`[login] Pre-apply for ${ctx.projectPath}`)
5
5
  }
6
6
 
7
- export const postApply = async (ctx: FeatureContext) => {
7
+ export async function postApply(ctx: FeatureContext) {
8
8
  console.log(`[login] Post-apply for ${ctx.projectPath}`)
9
9
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-unibest",
3
3
  "type": "module",
4
- "version": "4.0.3",
4
+ "version": "4.0.4",
5
5
  "packageManager": "pnpm@10.10.0",
6
6
  "description": "快速创建 unibest 项目的脚手架工具",
7
7
  "author": "feige996",