create-gasket-app 7.0.0-next.23 → 7.0.0-next.25

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/lib/index.d.ts +20 -17
  2. package/package.json +9 -8
package/lib/index.d.ts CHANGED
@@ -9,17 +9,18 @@ export interface Dependencies {
9
9
 
10
10
  export interface PackageJson extends Dependencies {
11
11
  name: string;
12
- version: string;
12
+ version?: string;
13
13
  description?: string;
14
14
  license?: string;
15
15
  repository?:
16
16
  | string
17
17
  | {
18
- type: 'git';
19
- url: string;
20
- };
18
+ type: 'git';
19
+ url: string;
20
+ };
21
21
  scripts?: Record<string, string>;
22
22
  optionalDependencies?: Record<string, string>;
23
+ homepage?: string;
23
24
  }
24
25
 
25
26
  export interface ModuleInfo {
@@ -30,11 +31,9 @@ export interface ModuleInfo {
30
31
  version?: string;
31
32
  }
32
33
 
33
- export interface PresetInfo extends ModuleInfo {
34
- }
34
+ export interface PresetInfo extends ModuleInfo {}
35
35
 
36
- export interface PluginInfo extends ModuleInfo {
37
- }
36
+ export interface PluginInfo extends ModuleInfo {}
38
37
 
39
38
  export interface ConfigBuilder<Config> {
40
39
  /**
@@ -132,16 +131,16 @@ export interface ConfigBuilder<Config> {
132
131
 
133
132
  export interface PackageJsonBuilder extends ConfigBuilder<PackageJson> {
134
133
  /**
135
- * Checks if a dependency has been already added
136
- * @param key - Dependency bucket
137
- * @param value - Dependency to search
138
- * @returns True if the dependency exists on the bucket
134
+ * Checks if a property exists on the package.json fields.
135
+ * @param key - Field to search
136
+ * @param value - Value to search for
137
+ * @returns True if the property exists and matches the value
139
138
  */
140
- has(key: keyof Dependencies, value: string): boolean;
139
+ has(key: keyof PackageJson, value: string): boolean;
141
140
  }
142
141
 
143
142
  export interface Files {
144
- add(...args: string[]): void
143
+ add(...args: string[]): void;
145
144
  }
146
145
 
147
146
  export interface CreateContext {
@@ -246,7 +245,10 @@ declare module '@gasket/core' {
246
245
  prompt(
247
246
  context: CreateContext,
248
247
  utils: {
249
- prompt: (prompts: Array<Record<string, any>>) => Promise<Record<string, any>>,
248
+ prompt: (
249
+ prompts: Array<Record<string, any>>
250
+ ) => Promise<Record<string, any>>;
251
+ addPlugins: (plugins: Array<string>) => Promise<void>;
250
252
  }
251
253
  ): MaybeAsync<CreateContext>;
252
254
 
@@ -255,7 +257,8 @@ declare module '@gasket/core' {
255
257
  postCreate(
256
258
  context: CreateContext,
257
259
  utils: {
258
- runScript: (script: string) => Promise<void>
259
- }): MaybeAsync<void>;
260
+ runScript: (script: string) => Promise<void>;
261
+ }
262
+ ): MaybeAsync<void>;
260
263
  }
261
264
  }
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "create-gasket-app",
3
- "version": "7.0.0-next.23",
3
+ "version": "7.0.0-next.25",
4
4
  "description": "starter pack for creating a gasket app",
5
- "main": "lib",
5
+ "main": "lib/index.js",
6
+ "types": "lib/index.d.ts",
6
7
  "bin": {
7
8
  "create-gasket-app": "./lib/index.js"
8
9
  },
@@ -32,10 +33,10 @@
32
33
  },
33
34
  "homepage": "https://github.com/godaddy/gasket/tree/main/packages/create-gasket-app",
34
35
  "dependencies": {
35
- "@gasket/core": "^7.0.0-next.23",
36
- "@gasket/plugin-git": "^7.0.0-next.23",
37
- "@gasket/plugin-logger": "^7.0.0-next.23",
38
- "@gasket/utils": "^7.0.0-next.23",
36
+ "@gasket/core": "^7.0.0-next.25",
37
+ "@gasket/plugin-git": "^7.0.0-next.25",
38
+ "@gasket/plugin-logger": "^7.0.0-next.25",
39
+ "@gasket/utils": "^7.0.0-next.25",
39
40
  "commander": "^12.0.0",
40
41
  "deepmerge": "^4.3.1",
41
42
  "glob": "^8.1.0",
@@ -54,7 +55,7 @@
54
55
  "diagnostics": "^2.0.2",
55
56
  "dotenv": "^16.4.5",
56
57
  "eslint": "^8.56.0",
57
- "eslint-config-godaddy": "^7.0.2",
58
+ "eslint-config-godaddy": "^7.1.0",
58
59
  "eslint-plugin-jest": "^27.6.3",
59
60
  "eslint-plugin-json": "^3.1.0",
60
61
  "eslint-plugin-unicorn": "^44.0.0",
@@ -78,5 +79,5 @@
78
79
  "jest": {
79
80
  "transform": {}
80
81
  },
81
- "gitHead": "0ba753c8764138e300be1c464065280bcc801239"
82
+ "gitHead": "0782b4f4d07d18fb6bd44ecaab3e6bdafd6d4c9d"
82
83
  }