create-gasket-app 7.4.10 → 7.4.12

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/lib/index.d.ts CHANGED
@@ -505,7 +505,7 @@ export interface CreateContext {
505
505
 
506
506
  /** Use to add content to the README.md */
507
507
  readme: Readme;
508
-
508
+ // eslint-disable-next-line @typescript-eslint/no-misused-new
509
509
  constructor(initContext?: Partial<CreateContext>);
510
510
  runWith(plugin: Plugin): CreateContext;
511
511
  /** Flag indicating if typescript is enabled */
package/lib/index.js CHANGED
@@ -17,7 +17,10 @@ const gasketBin = program
17
17
  .version(pkg.version)
18
18
  .addHelpText('beforeAll', logo);
19
19
 
20
-
20
+ /**
21
+ * The main entry point for the create-gasket-app CLI.
22
+ * @returns {Promise<Command>} promise
23
+ */
21
24
  async function main() {
22
25
  // Suppress deprecation warning for punycode in node 22
23
26
  process.noDeprecation = true;
@@ -30,4 +33,4 @@ async function main() {
30
33
  return await gasketBin.parseAsync();
31
34
  }
32
35
 
33
- main();
36
+ void main();
@@ -78,7 +78,7 @@ async function loadPresets({ context }) {
78
78
  const fullPath = path.resolve(modPath, pkgFile.name, entryPath);
79
79
  const mod = await import(pathToFileURL(fullPath).href);
80
80
  return mod.default?.default || mod.default || mod;
81
- } catch (err) {
81
+ } catch {
82
82
  throw new Error(`Failed to install local preset ${localPresetPath}`);
83
83
  }
84
84
  });
@@ -44,8 +44,8 @@ function isValidVersion(v) {
44
44
  // registry to see what dist-tags are available. This is not feasible.
45
45
  //
46
46
  return v === 'latest'
47
- || v.match(versionTypes.uri) != null // eslint-disable-line eqeqeq
48
- || v.match(versionTypes.github) != null // eslint-disable-line eqeqeq
47
+ || v.match(versionTypes.uri) != null
48
+ || v.match(versionTypes.github) != null
49
49
  || !!semver.validRange(v);
50
50
  }
51
51
 
@@ -1,4 +1,4 @@
1
- /* eslint-disable max-len, max-statements */
1
+ /* eslint-disable max-statements */
2
2
  import fs from 'fs';
3
3
  import path from 'path';
4
4
  import { readConfig } from '../scaffold/utils.js';
@@ -53,9 +53,10 @@ function makeCreateRuntime(context, source) {
53
53
  });
54
54
  }
55
55
 
56
- function flatten(acc, values) {
56
+
57
+ const flatten = (acc, values) => {
57
58
  return acc.concat(values);
58
- }
59
+ };
59
60
 
60
61
  export class CreateContext {
61
62
  constructor(initContext = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-gasket-app",
3
- "version": "7.4.10",
3
+ "version": "7.4.12",
4
4
  "description": "starter pack for creating a gasket app",
5
5
  "type": "module",
6
6
  "bin": {
@@ -31,63 +31,23 @@
31
31
  "mkdirp": "^1.0.4",
32
32
  "ora": "^3.4.0",
33
33
  "semver": "^7.7.1",
34
- "@gasket/core": "^7.6.0",
35
- "@gasket/plugin-command": "^7.5.0",
36
- "@gasket/plugin-dynamic-plugins": "^7.4.0",
37
- "@gasket/plugin-git": "^7.4.4",
38
- "@gasket/plugin-docs": "^7.4.5",
39
- "@gasket/plugin-docusaurus": "^7.4.4",
40
- "@gasket/plugin-logger": "^7.3.5",
41
- "@gasket/plugin-metadata": "^7.5.1",
42
- "@gasket/request": "^7.5.1",
43
- "@gasket/utils": "^7.6.0"
34
+ "@gasket/core": "^7.6.2",
35
+ "@gasket/plugin-command": "^7.5.2",
36
+ "@gasket/plugin-docs": "^7.4.7",
37
+ "@gasket/plugin-docusaurus": "^7.4.5",
38
+ "@gasket/plugin-dynamic-plugins": "^7.4.1",
39
+ "@gasket/plugin-git": "^7.4.6",
40
+ "@gasket/plugin-logger": "^7.3.7",
41
+ "@gasket/plugin-metadata": "^7.5.3",
42
+ "@gasket/request": "^7.5.3",
43
+ "@gasket/utils": "^7.6.2"
44
44
  },
45
45
  "devDependencies": {
46
- "@jest/globals": "^29.7.0",
47
- "@types/inquirer": "^9.0.7",
48
- "@types/jest": "^29.5.14",
49
- "@types/node": "^20.17.19",
50
- "cross-env": "^7.0.3",
46
+ "@typescript-eslint/parser": "^8.38.0",
51
47
  "dotenv": "^16.4.7",
52
- "eslint": "^8.57.1",
53
- "eslint-config-godaddy": "^7.1.1",
54
- "eslint-config-godaddy-typescript": "^4.0.3",
55
- "eslint-plugin-jest": "^27.9.0",
56
- "eslint-plugin-unicorn": "^55.0.0",
57
48
  "jest": "^29.7.0",
58
- "typescript": "^5.8.2",
59
- "@gasket/request": "^7.5.1"
49
+ "@gasket/request": "^7.5.3"
60
50
  },
61
- "eslintConfig": {
62
- "extends": [
63
- "godaddy",
64
- "plugin:jest/recommended",
65
- "plugin:jsdoc/recommended-typescript-flavor"
66
- ],
67
- "plugins": [
68
- "unicorn",
69
- "jsdoc"
70
- ],
71
- "rules": {
72
- "unicorn/filename-case": "error"
73
- },
74
- "overrides": [
75
- {
76
- "files": [
77
- "lib/*.ts"
78
- ],
79
- "extends": [
80
- "godaddy-typescript"
81
- ],
82
- "rules": {
83
- "jsdoc/*": "off"
84
- }
85
- }
86
- ]
87
- },
88
- "eslintIgnore": [
89
- "test/fixtures"
90
- ],
91
51
  "jest": {
92
52
  "transform": {}
93
53
  },