mod-build 4.0.18-beta.2 → 4.0.18-beta.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mod-build",
3
- "version": "4.0.18-beta.2",
3
+ "version": "4.0.18-beta.3",
4
4
  "description": "Share components for S3 sites.",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -137,16 +137,10 @@ export const updateHandlebarsOnWatch = async (config) => {
137
137
  }
138
138
 
139
139
  export const createStylelintFile = () => {
140
- return {
141
- name: 'create-stylelint-config',
142
- writeBundle() {
143
- // if the .stylelintrc.yml file doesn't exist in root, create it
144
- const stylelintConfig = `extends:
145
- ./node_modules/mod-build/.stylelintrc.json`;
140
+ const stylelintConfig = `extends:
141
+ ./node_modules/mod-build/.stylelintrc.json`;
146
142
 
147
- if (!fs.existsSync('.stylelintrc.yml')) {
148
- fs.writeFileSync('.stylelintrc.yml', stylelintConfig);
149
- }
150
- }
143
+ if (!fs.existsSync('.stylelintrc.yml')) {
144
+ fs.writeFileSync('.stylelintrc.yml', stylelintConfig);
151
145
  }
152
146
  }
package/tasks/serve.js CHANGED
@@ -6,7 +6,7 @@ import templates from './templates.js';
6
6
  import { createStylelintFile, updateConfig } from '../src/scripts/plugins.js';
7
7
 
8
8
  export async function startModBuild(config) {
9
- await createStylelintFile();
9
+ createStylelintFile();
10
10
  await grabCdn(config);
11
11
  await Promise.all([
12
12
  grabSharedComponents(config),