@lipemat/js-boilerplate 10.10.4 → 10.10.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.
- package/bin/watch.ts +2 -2
- package/package.json +1 -1
- package/scripts/lint.ts +1 -1
package/bin/watch.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import chokidar from 'chokidar';
|
|
2
2
|
import {exec} from 'child_process';
|
|
3
|
-
import chalk
|
|
3
|
+
import chalk from 'chalk';
|
|
4
4
|
|
|
5
5
|
const toWatch = [
|
|
6
6
|
'config/*.ts',
|
|
@@ -15,7 +15,7 @@ chokidar.watch( toWatch, {ignored: /(^|[\/\\])\../} )
|
|
|
15
15
|
console.log( chalk.yellowBright( '[watch]' ), `${path} changed` );
|
|
16
16
|
exec( 'yarn run build', ( err, stdout ) => {
|
|
17
17
|
if ( err ) {
|
|
18
|
-
console.error( red( stdout ) );
|
|
18
|
+
console.error( chalk.red( stdout ) );
|
|
19
19
|
} else {
|
|
20
20
|
console.log( stdout );
|
|
21
21
|
}
|
package/package.json
CHANGED
package/scripts/lint.ts
CHANGED
|
@@ -35,7 +35,7 @@ function errorOccurred( results: ESLint.LintResult[] ): boolean {
|
|
|
35
35
|
|
|
36
36
|
// 2. Lint files. This doesn't modify target files.
|
|
37
37
|
const results: ESLint.LintResult[] = await eslint.lintFiles( [
|
|
38
|
-
getPackageConfig().workingDirectory + '/src/**/*.{js,jsx,ts,tsx}',
|
|
38
|
+
getPackageConfig().workingDirectory + '/src/**/*.{js,jsx,ts,tsx,svelte}',
|
|
39
39
|
] );
|
|
40
40
|
|
|
41
41
|
// 3. Modify the files with the fixed code.
|