@corva/create-app 0.48.0-4 → 0.48.0-5

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.
@@ -172,13 +172,15 @@ const resolveDataForZipNodeJsApp = async (itemsToZip = [], { options, pkg, dirNa
172
172
  throw new StepError(`No lock file found in ${dirName}`);
173
173
  }
174
174
 
175
+ const defaultSrcWithoutExtensions = '+(__tests__|src|lib)/**/*.';
176
+
175
177
  if (packageDirContent.includes('tsconfig.json')) {
176
178
  itemsToZip.push('tsconfig.json', 'tsconfig.build.json');
177
179
 
178
180
  if (shouldPushDefaultSrc) {
179
181
  itemsToZip.push(
180
182
  'index.ts',
181
- ...(await glob('+(src|lib)/**/*.ts', {
183
+ ...(await glob(`${defaultSrcWithoutExtensions}ts`, {
182
184
  cwd: dirName,
183
185
  ignore: options.ignoredFiles,
184
186
  })),
@@ -187,7 +189,7 @@ const resolveDataForZipNodeJsApp = async (itemsToZip = [], { options, pkg, dirNa
187
189
  } else if (shouldPushDefaultSrc) {
188
190
  itemsToZip.push(
189
191
  'index.js',
190
- ...(await glob('+(src|lib)/**/*.js', {
192
+ ...(await glob(`${defaultSrcWithoutExtensions}js`, {
191
193
  cwd: dirName,
192
194
  ignore: options.ignoredFiles,
193
195
  })),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corva/create-app",
3
- "version": "0.48.0-4",
3
+ "version": "0.48.0-5",
4
4
  "private": false,
5
5
  "description": "Create an app to use it in CORVA.AI",
6
6
  "keywords": [