@weapp-tailwindcss/init 2.0.0 → 2.0.1

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +11 -14
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -1,7 +1,5 @@
1
1
  import { Options } from "npm-registry-fetch";
2
- //#region ../../node_modules/.pnpm/pkg-types@2.3.1/node_modules/pkg-types/dist/index.d.mts
3
- //#endregion
4
- //#region src/packagejson/types.d.ts
2
+ //#region ../../node_modules/.pnpm/pkg-types@2.3.3/node_modules/pkg-types/dist/index.d.mts
5
3
  interface PackageJson {
6
4
  /**
7
5
  * The name is what your thing is called.
@@ -302,7 +300,7 @@ type FetchOptions = Options;
302
300
  type InitMode = 'v4' | 'legacy';
303
301
  //#endregion
304
302
  //#region src/index.d.ts
305
- interface CreateContextOptions {
303
+ export interface CreateContextOptions {
306
304
  cwd: string;
307
305
  pkgJsonBasename?: string;
308
306
  postcssConfigBasename?: string;
@@ -312,7 +310,7 @@ interface CreateContextOptions {
312
310
  mode?: InitMode;
313
311
  fetchOptions?: FetchOptions;
314
312
  }
315
- declare function createContext(options: Required<CreateContextOptions>): Promise<{
313
+ export declare function createContext(options: Required<CreateContextOptions>): Promise<{
316
314
  pkgJson: PackageJson;
317
315
  pkgJsonPath: string;
318
316
  cwd: string;
@@ -332,12 +330,12 @@ declare function createContext(options: Required<CreateContextOptions>): Promise
332
330
  mode: InitMode;
333
331
  readonly type: "module" | "commonjs" | undefined;
334
332
  } | undefined>;
335
- type Context = Exclude<Awaited<ReturnType<typeof createContext>>, undefined>;
336
- declare function updatePackageJson(ctx: Context): Promise<void>;
337
- declare function touchPostcssConfig(ctx: Context): Promise<boolean>;
338
- declare function touchTailwindConfig(ctx: Context): Promise<boolean>;
339
- declare function touchCssEntry(ctx: Context): Promise<boolean>;
340
- declare function getInitDefaults(): {
333
+ export type Context = Exclude<Awaited<ReturnType<typeof createContext>>, undefined>;
334
+ export declare function updatePackageJson(ctx: Context): Promise<void>;
335
+ export declare function touchPostcssConfig(ctx: Context): Promise<boolean>;
336
+ export declare function touchTailwindConfig(ctx: Context): Promise<boolean>;
337
+ export declare function touchCssEntry(ctx: Context): Promise<boolean>;
338
+ export declare function getInitDefaults(): {
341
339
  cwd: string;
342
340
  postcssConfigBasename: string;
343
341
  tailwindConfigBasename: string;
@@ -346,6 +344,5 @@ declare function getInitDefaults(): {
346
344
  pkgJsonBasename: string;
347
345
  mode: InitMode;
348
346
  };
349
- declare function init(options?: CreateContextOptions): Promise<void>;
350
- //#endregion
351
- export { Context, CreateContextOptions, createContext, getInitDefaults, init, touchCssEntry, touchPostcssConfig, touchTailwindConfig, updatePackageJson };
347
+ export declare function init(options?: CreateContextOptions): Promise<void>;
348
+ //#endregion
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@weapp-tailwindcss/init",
3
3
  "type": "module",
4
- "version": "2.0.0",
4
+ "version": "2.0.1",
5
5
  "description": "Project initializer for cross-platform Tailwind CSS with weapp-tailwindcss. 用于初始化跨端 Tailwind CSS 项目的 weapp-tailwindcss 工具。",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -35,7 +35,7 @@
35
35
  "dependencies": {
36
36
  "@weapp-tailwindcss/logger": "2.0.3",
37
37
  "@weapp-tailwindcss/shared": "2.0.3",
38
- "fs-extra": "^11.4.0",
38
+ "fs-extra": "^11.4.1",
39
39
  "npm-registry-fetch": "^20.0.1",
40
40
  "pathe": "^2.0.3"
41
41
  },