datagrok-tools 4.13.3 → 4.13.4
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/CHANGELOG.md +8 -1
- package/bin/commands/check.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/bin/commands/check.js
CHANGED
|
@@ -507,7 +507,7 @@ function checkSourceMap(packagePath) {
|
|
|
507
507
|
encoding: 'utf-8'
|
|
508
508
|
}); // cant convert to json because file contains comments
|
|
509
509
|
|
|
510
|
-
if (!new RegExp("devtool\\s*:\\s*'source-map'").test(webpackConfigJson)) warnings.push('webpack config doesnt contain source map');
|
|
510
|
+
if (!new RegExp("devtool\\s*:\\s*(([^\\n]*\\?[^\\n]*source-map[^\\n]*:[^\\n]*source-map[^\\n]*)|('source-map'))\\n").test(webpackConfigJson)) warnings.push('webpack config doesnt contain source map');
|
|
511
511
|
if (!_fs["default"].existsSync(packagePath + '/dist/package.js')) warnings.push('dist\\package.js file doesnt exists');
|
|
512
512
|
if (!_fs["default"].existsSync(packagePath + '/dist/package-test.js')) warnings.push('dist\\package-test.js file doesnt exists');
|
|
513
513
|
}
|
package/package.json
CHANGED