Skip to content

Commit 56fb92c

Browse files
committed
feat: add scriptRunCommand to all templates
1 parent a630f99 commit 56fb92c

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

src/generators/common-repo/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export const CommonRepoMixin = subclass =>
33
async execute() {
44
this.templateData = {
55
...this.templateData,
6+
scriptRunCommand: this.options.installDependencies === 'yarn' ? 'yarn' : 'npm run',
67
year: new Date().getFullYear(),
78
};
89

src/generators/wc-lit-element-ts/index.js

-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ export const TsWcLitElementMixin = subclass =>
2929
class extends subclass {
3030
async execute() {
3131
this.templateData.featureReadmes = safeFeatureReadme(this.options.features);
32-
this.templateData.scriptRunCommand =
33-
this.options.installDependencies === 'yarn' ? 'yarn' : 'npm run';
3432

3533
await super.execute();
3634
const { tagName, className } = this.templateData;

src/generators/wc-lit-element/index.js

-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ export const WcLitElementMixin = subclass =>
2929
class extends subclass {
3030
async execute() {
3131
this.templateData.featureReadmes = safeFeatureReadme(this.options.features);
32-
this.templateData.scriptRunCommand =
33-
this.options.installDependencies === 'yarn' ? 'yarn' : 'npm run';
3432

3533
await super.execute();
3634
const { tagName, className } = this.templateData;

0 commit comments

Comments
 (0)