@weapp-core/init 6.0.17 → 6.0.19

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.d.ts CHANGED
@@ -87,9 +87,9 @@ interface Context {
87
87
  }
88
88
  //#endregion
89
89
  //#region src/configFiles.d.ts
90
- declare function initViteConfigFile(options: SharedUpdateOptions): Promise<string>;
91
- declare function initTsDtsFile(options: SharedUpdateOptions): Promise<string>;
92
- declare function initTsJsonFiles(options: SharedUpdateOptions): Promise<{
90
+ export declare function initViteConfigFile(options: SharedUpdateOptions): Promise<string>;
91
+ export declare function initTsDtsFile(options: SharedUpdateOptions): Promise<string>;
92
+ export declare function initTsJsonFiles(options: SharedUpdateOptions): Promise<{
93
93
  tsconfig: {
94
94
  references: {
95
95
  path: string;
@@ -168,27 +168,27 @@ declare function initTsJsonFiles(options: SharedUpdateOptions): Promise<{
168
168
  /**
169
169
  * @description 创建或更新 package.json
170
170
  */
171
- declare function createOrUpdatePackageJson(options: UpdatePackageJsonOptions): Promise<PackageJsonData>;
171
+ export declare function createOrUpdatePackageJson(options: UpdatePackageJsonOptions): Promise<PackageJsonData>;
172
172
  //#endregion
173
173
  //#region src/projectConfig.d.ts
174
174
  /**
175
175
  * @description 创建或更新 project.config.json
176
176
  */
177
- declare function createOrUpdateProjectConfig(options: UpdateProjectConfigOptions): Promise<ProjectConfig>;
177
+ export declare function createOrUpdateProjectConfig(options: UpdateProjectConfigOptions): Promise<ProjectConfig>;
178
178
  //#endregion
179
179
  //#region src/state.d.ts
180
180
  /**
181
181
  * @description 重置全局上下文
182
182
  */
183
- declare function resetContext(): void;
183
+ export declare function resetContext(): void;
184
184
  //#endregion
185
185
  //#region src/index.d.ts
186
186
  /**
187
187
  * @description 初始化项目配置(project.config、package.json、tsconfig、vite.config 等)
188
188
  */
189
- declare function initConfig(options: {
189
+ export declare function initConfig(options: {
190
190
  root?: string;
191
191
  command?: 'weapp-vite';
192
192
  }): Promise<Context>;
193
193
  //#endregion
194
- export { type Context, createOrUpdatePackageJson, createOrUpdateProjectConfig, initConfig, initTsDtsFile, initTsJsonFiles, initViteConfigFile, resetContext };
194
+ export type { Context };
package/dist/index.js CHANGED
@@ -851,7 +851,7 @@ async function initTsJsonFiles(options) {
851
851
  }
852
852
  //#endregion
853
853
  //#region ../../packages/weapp-vite/package.json
854
- var version = "7.0.3";
854
+ var version = "7.1.1";
855
855
  //#endregion
856
856
  //#region src/npm.ts
857
857
  /**
@@ -899,7 +899,7 @@ async function latestVersion(packageName, prefix = "^", fetch = getLatestVersion
899
899
  const FALLBACK_DEP_VERSIONS = {
900
900
  "miniprogram-api-typings": "^4.1.0",
901
901
  "typescript": "^5.9.2",
902
- "weapp-tailwindcss": "^5.0.4"
902
+ "weapp-tailwindcss": "^5.5.2"
903
903
  };
904
904
  /**
905
905
  * @description 创建默认 package.json 模板
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@weapp-core/init",
3
3
  "type": "module",
4
- "version": "6.0.17",
5
- "description": "@weapp-core/init",
4
+ "version": "6.0.19",
5
+ "description": "Project initialization utilities for weapp-vite mini-program applications.",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
8
+ "homepage": "https://github.com/weapp-vite/weapp-vite#readme",
8
9
  "repository": {
9
10
  "type": "git",
10
11
  "url": "git+https://github.com/weapp-vite/weapp-vite.git",
@@ -13,7 +14,14 @@
13
14
  "bugs": {
14
15
  "url": "https://github.com/weapp-vite/weapp-vite/issues"
15
16
  },
16
- "keywords": [],
17
+ "keywords": [
18
+ "weapp-vite",
19
+ "weapp",
20
+ "wechat",
21
+ "mini-program",
22
+ "miniprogram",
23
+ "vite"
24
+ ],
17
25
  "sideEffects": false,
18
26
  "exports": {
19
27
  ".": {
@@ -38,9 +46,13 @@
38
46
  "engines": {
39
47
  "node": "^20.19.0 || >=22.12.0"
40
48
  },
49
+ "publishConfig": {
50
+ "access": "public",
51
+ "registry": "https://registry.npmjs.org"
52
+ },
41
53
  "dependencies": {
42
- "@weapp-core/logger": "3.1.1",
43
- "@weapp-core/shared": "3.2.1"
54
+ "@weapp-core/logger": "3.1.3",
55
+ "@weapp-core/shared": "3.2.2"
44
56
  },
45
57
  "scripts": {
46
58
  "dev": "tsdown -w --sourcemap",