@techninja/clearstack 0.4.23 → 0.4.24

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.
Files changed (2) hide show
  1. package/lib/spec-config.js +10 -2
  2. package/package.json +1 -1
@@ -110,8 +110,16 @@ export function buildCmds(projectDir, opts) {
110
110
  const audit = runner === 'pnpm exec'
111
111
  ? 'pnpm audit --prod --ignore-registry-errors'
112
112
  : 'npm audit --omit=dev';
113
- const prettier = (cmd) => `${runner} prettier --config .configs/.prettierrc --ignore-path .configs/.prettierignore --${cmd} src scripts`;
114
- const stylelint = (extra = '') => `${runner} stylelint --config .configs/.stylelintrc.json "src/**/*.css" "!src/embed-dist/**"${extra}`;
113
+ const cfg = loadConfig(projectDir);
114
+ const extraIgnoreGlobs = cfg.rawEnv.SPEC_PRETTIER_IGNORE
115
+ ? cfg.rawEnv.SPEC_PRETTIER_IGNORE.split(',').map((p) => `"!${p.trim()}"`).join(' ')
116
+ : '';
117
+ const prettier = (cmd) => `${runner} prettier --config .configs/.prettierrc --ignore-path .configs/.prettierignore --${cmd} "src/**/*.{js,css}" "!src/vendor/**" "!src/icons.json"${extraIgnoreGlobs ? ' ' + extraIgnoreGlobs : ''} scripts`;
118
+ const stylelintIgnore = cfg.ignore
119
+ .filter((d) => d.startsWith('src/'))
120
+ .map((d) => ` "!${d.endsWith('/**') ? d : d + '/**'}"`)
121
+ .join('');
122
+ const stylelint = (extra = '') => `${runner} stylelint --config .configs/.stylelintrc.json "src/**/*.css"${stylelintIgnore}${extra}`;
115
123
  if (opts?.watch) return {
116
124
  lint: `${runner} eslint --config .configs/eslint.config.js .`,
117
125
  stylelint: stylelint(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@techninja/clearstack",
3
- "version": "0.4.23",
3
+ "version": "0.4.24",
4
4
  "type": "module",
5
5
  "description": "A no-build web component framework specification — scaffold, validate, and evolve spec-compliant projects",
6
6
  "bin": {