@drupal-canvas/cli 0.7.1 → 0.7.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.
Files changed (2) hide show
  1. package/dist/index.js +5 -9
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -23,7 +23,7 @@ import axios from 'axios';
23
23
  import os2 from 'os';
24
24
  import { basename } from 'path/win32';
25
25
  import { ESLint } from 'eslint';
26
- import { required, next } from '@drupal-canvas/eslint-config';
26
+ import { requiredDeprecated, required } from '@drupal-canvas/eslint-config';
27
27
  import { table } from 'table';
28
28
 
29
29
  var __create = Object.create;
@@ -288144,10 +288144,10 @@ async function buildTailwindForComponents(selectedComponents, useLocalGlobalCss
288144
288144
  success: true
288145
288145
  };
288146
288146
  }
288147
- async function validateComponent(componentDir2, fix = false, next$1) {
288147
+ async function validateComponent(componentDir2, fix = false, deprecated) {
288148
288148
  const eslint = new ESLint({
288149
288149
  overrideConfigFile: true,
288150
- overrideConfig: next$1 ? next : required,
288150
+ overrideConfig: deprecated ? requiredDeprecated : required,
288151
288151
  fix
288152
288152
  });
288153
288153
  const eslintResults = await eslint.lintFiles(componentDir2 + "/**/*");
@@ -288182,11 +288182,7 @@ async function buildComponent(component, useLocalGlobalCss = true, outputDir2 =
288182
288182
  details: []
288183
288183
  };
288184
288184
  const componentAbsoluteDir = path7.dirname(component.metadataPath);
288185
- const validationResult = await validateComponent(
288186
- componentAbsoluteDir,
288187
- false,
288188
- true
288189
- );
288185
+ const validationResult = await validateComponent(componentAbsoluteDir);
288190
288186
  if (!validationResult.success) {
288191
288187
  result.success = false;
288192
288188
  result.details = validationResult.details;
@@ -288707,7 +288703,7 @@ async function buildComponent2(componentDir2, useLocalGlobalCss = true) {
288707
288703
  success: true,
288708
288704
  details: []
288709
288705
  };
288710
- const validationResult = await validateComponent(componentDir2);
288706
+ const validationResult = await validateComponent(componentDir2, false, true);
288711
288707
  if (!validationResult.success) {
288712
288708
  result.success = false;
288713
288709
  result.details = validationResult.details;
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@drupal-canvas/cli",
3
3
  "description": "CLI tool for managing Drupal Canvas code components",
4
- "version": "0.7.1",
5
4
  "license": "GPL-2.0-or-later",
6
5
  "repository": {
7
6
  "type": "git",
@@ -39,12 +38,14 @@
39
38
  "prettier": "^3.2.1",
40
39
  "tsup": "^8.5.1",
41
40
  "typescript": "^5.8.3",
42
- "vitest": "^3.2.3"
41
+ "vitest": "^3.2.3",
42
+ "@drupal-canvas/discovery": "*",
43
+ "@drupal-canvas/vite-compat": "*"
43
44
  },
44
45
  "dependencies": {
45
46
  "@babel/parser": "^7.26.9",
46
47
  "@clack/prompts": "^0.11.0",
47
- "@drupal-canvas/eslint-config": "^0.1.2",
48
+ "@drupal-canvas/eslint-config": "^0.1.4",
48
49
  "@swc/wasm": "^1.12.1",
49
50
  "axios": "^1.9.0",
50
51
  "chalk": "^5.4.1",
@@ -55,8 +56,7 @@
55
56
  "lightningcss": "^1.30.1",
56
57
  "table": "^6.9.0",
57
58
  "tailwindcss-in-browser": "^0.6.0",
58
- "vite": "^6.3.5",
59
- "@drupal-canvas/discovery": "*",
60
- "@drupal-canvas/vite-compat": "*"
61
- }
59
+ "vite": "^6.3.5"
60
+ },
61
+ "version": "0.7.3"
62
62
  }