@whook/create 12.0.2 → 13.0.0

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.
@@ -128,15 +128,14 @@ ${author.name}
128
128
  `,
129
129
  ),
130
130
  ),
131
- ...(
132
- await readdir(path.join(SOURCE_DIR, 'src', 'config'))
133
- ).map((environment) =>
134
- environment === 'common'
135
- ? Promise.resolve()
136
- : writeFile(
137
- path.join(project.directory, `.env.${environment}`),
138
- 'JWT_SECRET=oudelali\n',
139
- ),
131
+ ...(await readdir(path.join(SOURCE_DIR, 'src', 'config'))).map(
132
+ (environment) =>
133
+ environment === 'common'
134
+ ? Promise.resolve()
135
+ : writeFile(
136
+ path.join(project.directory, `.env.${environment}`),
137
+ 'JWT_SECRET=oudelali\n',
138
+ ),
140
139
  ),
141
140
  writeFile(
142
141
  path.join(project.directory, 'package.json'),
@@ -187,7 +186,7 @@ ${author.name}
187
186
  'error',
188
187
  `⚠️ - Could not retrieve the \`.gitignore\` file contents from: "${GIT_IGNORE_URL}"`,
189
188
  );
190
- log('error-stack', printStackTrace(err));
189
+ log('error-stack', printStackTrace(err as Error));
191
190
  }),
192
191
  new Promise((resolve, reject) =>
193
192
  exec(
@@ -206,7 +205,7 @@ ${author.name}
206
205
  ),
207
206
  ).catch((err) => {
208
207
  log('error', '⚠️ - Could not initialize the git project!');
209
- log('error-stack', printStackTrace(err));
208
+ log('error-stack', printStackTrace(err as Error));
210
209
  }),
211
210
  ]);
212
211
 
@@ -242,7 +241,7 @@ ${author.name}
242
241
  symbol: '❌',
243
242
  text: 'Failed to install dependencies',
244
243
  });
245
- log('error-stack', printStackTrace(err));
244
+ log('error-stack', printStackTrace(err as Error));
246
245
  }
247
246
 
248
247
  log(
@@ -1,3 +1,4 @@
1
+ /* eslint-disable @typescript-eslint/no-explicit-any */
1
2
  import { describe, it, beforeEach, jest, expect } from '@jest/globals';
2
3
  import _inquirer from 'inquirer';
3
4
  import initProject from './project.js';
@@ -54,7 +54,7 @@ export default autoService(async function initProject({
54
54
  'error',
55
55
  `Cannot create the project's directory: "${projectDirectory}"`,
56
56
  );
57
- log('error-stack', printStackTrace(err));
57
+ log('error-stack', printStackTrace(err as Error));
58
58
  throw YError.wrap(err as Error, 'E_PROJECT_DIR', projectDirectory);
59
59
  }
60
60