Skip to content

Commit 9bcac7b

Browse files
committed
✨ use single quotes for cleaner scripts
1 parent ce1a30a commit 9bcac7b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

packages/create-configs/src/steps/scripts.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe('scripts', () => {
1111
});
1212

1313
it(`should create lint scripts`, () => {
14-
expect(output.scripts.lint).toMatch(/concurrently.+"npm:lint:\*"/u);
14+
expect(output.scripts.lint).toMatch(/concurrently.+'npm:lint:\*'/u);
1515
expect(output.scripts['lint:js']).toMatch(/^eslint /u);
1616
expect(output.scripts['lint:js']).toMatch(/ --ext /u);
1717
expect(
@@ -30,7 +30,7 @@ describe('scripts', () => {
3030
});
3131

3232
it(`should create lint scripts`, () => {
33-
expect(output.scripts.lint).toMatch(/concurrently.+"npm:lint:\*"/u);
33+
expect(output.scripts.lint).toMatch(/concurrently.+'npm:lint:\*'/u);
3434
expect(output.scripts['lint:js']).toMatch(/^eslint /u);
3535
expect(output.scripts['lint:js']).toMatch(/ --ext /u);
3636
expect(
@@ -49,7 +49,7 @@ describe('scripts', () => {
4949
});
5050

5151
it(`should create lint scripts`, () => {
52-
expect(output.scripts.lint).toMatch(/concurrently.+"npm:lint:\*"/u);
52+
expect(output.scripts.lint).toMatch(/concurrently.+'npm:lint:\*'/u);
5353
expect(output.scripts['lint:css']).toMatch(/^stylelint /u);
5454
expect(output.scripts['lint:css']).toMatch(/\{css\}/u);
5555
});
@@ -65,7 +65,7 @@ describe('scripts', () => {
6565
});
6666

6767
it(`should create lint scripts`, () => {
68-
expect(output.scripts.lint).toMatch(/concurrently.+"npm:lint:\*"/u);
68+
expect(output.scripts.lint).toMatch(/concurrently.+'npm:lint:\*'/u);
6969
expect(output.scripts['lint:css']).toMatch(/^stylelint /u);
7070
expect(output.scripts['lint:css']).toMatch(/[^s]css/u);
7171
expect(output.scripts['lint:css']).toMatch(/scss/u);
@@ -88,7 +88,7 @@ describe('scripts', () => {
8888
});
8989

9090
it(`should create build scripts`, () => {
91-
expect(output.scripts.build).toMatch(/concurrently.+"npm:build:\*"/u);
91+
expect(output.scripts.build).toMatch(/concurrently.+'npm:build:\*'/u);
9292
expect(output.scripts['build:js']).toMatch(/^esbuild /u);
9393
expect(output.scripts['build:js']).not.toMatch(/\n/u);
9494
});

packages/create-configs/src/steps/scripts.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export function _generate_build_script({
115115
// }
116116
// }
117117

118-
scripts.build = `${deps.d.depend('concurrently')} ${concurrently_opts} "npm:build:*"`;
118+
scripts.build = `${deps.d.depend('concurrently')} ${concurrently_opts} 'npm:build:*'`;
119119

120120
if (library) {
121121
// build types
@@ -229,7 +229,7 @@ export function _generate_lint_script({
229229
}
230230
},
231231
{
232-
lint: `${deps.d.depend('concurrently')} ${concurrently_opts} "npm:lint:*"`,
232+
lint: `${deps.d.depend('concurrently')} ${concurrently_opts} 'npm:lint:*'`,
233233
},
234234
);
235235

@@ -312,7 +312,7 @@ export function _generate_check_script({
312312

313313
return {
314314
scripts: {
315-
check: `${deps.d.depend('concurrently')} ${concurrently_opts} "npm:test" "npm:lint"`,
315+
check: `${deps.d.depend('concurrently')} ${concurrently_opts} 'npm:test' 'npm:lint'`,
316316
},
317317
dependencies: deps,
318318
};

0 commit comments

Comments
 (0)