@navikt/aksel 8.13.1 → 8.15.0

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.
@@ -4,9 +4,5 @@ type SupportedCodemodExtensions = "js" | "ts" | "jsx" | "tsx" | "css" | "scss" |
4
4
  * Utility function to generate the default glob pattern
5
5
  */
6
6
  declare function getDefaultGlob(ext: string): string;
7
- /**
8
- * Utility function to clean file extensions
9
- */
10
- declare function cleanExtensions(ext: string): string[];
11
- export { GLOB_IGNORE_PATTERNS, getDefaultGlob, cleanExtensions };
7
+ export { GLOB_IGNORE_PATTERNS, getDefaultGlob };
12
8
  export type { SupportedCodemodExtensions };
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GLOB_IGNORE_PATTERNS = void 0;
4
4
  exports.getDefaultGlob = getDefaultGlob;
5
- exports.cleanExtensions = cleanExtensions;
6
5
  const GLOB_IGNORE_PATTERNS = [
7
6
  "**/node_modules/**",
8
7
  "**/dist/**",
@@ -1,2 +1,2 @@
1
- import { Command } from "commander";
1
+ import type { Command } from "commander";
2
2
  export declare function runCodeshift(input: string, options: any, program: Command): Promise<void>;
@@ -1,4 +1,4 @@
1
- import { Command } from "commander";
1
+ import type { Command } from "commander";
2
2
  /**
3
3
  * Validates that the provided version key exists in the migrations object.
4
4
  */
@@ -1,4 +1,4 @@
1
- import { API, ASTPath, JSXElement } from "jscodeshift";
1
+ import type { API, ASTPath, JSXElement } from "jscodeshift";
2
2
  /**
3
3
  * Finds a component import, accounting for sub-components and aliases.
4
4
  * Returns the local name of the component. If the component is not found, returns null.
@@ -6,19 +6,7 @@ interface TestT {
6
6
  [option: string]: any;
7
7
  };
8
8
  }
9
- interface ScenarioT {
10
- migration: string;
11
- scenarios: Record<string, {
12
- input: string;
13
- output: string;
14
- }>;
15
- extension?: "js" | "scss" | "less" | "css";
16
- options?: {
17
- [option: string]: any;
18
- };
19
- }
20
9
  export declare function check(dirName: string, { fixture, migration, extension, options }: TestT): void;
21
- export declare function checkScenarios(dirName: string, { migration, scenarios, extension, options }: ScenarioT): void;
22
10
  export declare function checkMoveVariantToDataColor(dirName: string, { migration, config, }: {
23
11
  migration: string;
24
12
  config: {
@@ -46,7 +46,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
46
46
  };
47
47
  Object.defineProperty(exports, "__esModule", { value: true });
48
48
  exports.check = check;
49
- exports.checkScenarios = checkScenarios;
50
49
  exports.checkMoveVariantToDataColor = checkMoveVariantToDataColor;
51
50
  /* @ts-expect-error No avaliable types for testUtils */
52
51
  const testUtils_1 = require("jscodeshift/dist/testUtils");
@@ -1,4 +1,5 @@
1
- import core, { Collection } from "jscodeshift";
1
+ import type core from "jscodeshift";
2
+ import type { Collection } from "jscodeshift";
2
3
  export declare function getImportSpecifier(j: core.JSCodeshift, source: Collection<any>, specifier: string, sourcePath: string): import("jscodeshift/src/Collection").Collection<import("ast-types").namedTypes.ImportSpecifier>;
3
4
  export declare function renameImportSpecifier(j: core.JSCodeshift, source: Collection<any>, specifier: string, newSpecifier: string, sourcePath: string): void;
4
5
  export declare function getImportSpecifierName(j: core.JSCodeshift, source: Collection<any>, specifier: string, sourcePath: string): string | import("ast-types/lib/gen/kinds").IdentifierKind | null;
@@ -1,4 +1,5 @@
1
- import core, { Collection, JSCodeshift } from "jscodeshift";
1
+ import type core from "jscodeshift";
2
+ import type { Collection, JSCodeshift } from "jscodeshift";
2
3
  export declare const addPackageImport: ({ j, root, packageName, specifiers, }: {
3
4
  j: JSCodeshift;
4
5
  root: Collection<any>;
@@ -1,2 +1,3 @@
1
- import core, { Collection } from "jscodeshift";
1
+ import type core from "jscodeshift";
2
+ import type { Collection } from "jscodeshift";
2
3
  export default function removePropsFromComponent(_: core.JSCodeshift, root: Collection<any>, componentName: string, propsToRemove: string[]): void;
@@ -1,4 +1,4 @@
1
- import { Command } from "commander";
1
+ import type { Command } from "commander";
2
2
  type ToolingOptions = {
3
3
  force: boolean;
4
4
  dryRun: boolean;
@@ -1,3 +1,3 @@
1
- import { TokenStatus } from "../config/TokenStatus";
1
+ import type { TokenStatus } from "../config/TokenStatus";
2
2
  declare function printRemaining(files: string[], status?: TokenStatus["status"]): Promise<void>;
3
3
  export { printRemaining };
@@ -1,3 +1,3 @@
1
- import { Command } from "commander";
1
+ import type { Command } from "commander";
2
2
  export declare function validateMigration(str: string, program: Command): void;
3
3
  export declare function validateGit(options: any, program: Command): void;
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "8.13.1";
1
+ export declare const VERSION = "8.15.0";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = "8.13.1";
4
+ exports.VERSION = "8.15.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navikt/aksel",
3
- "version": "8.13.1",
3
+ "version": "8.15.0",
4
4
  "description": "Aksel command line interface. Codemods and other utilities for Aksel users.",
5
5
  "author": "Aksel | Nav designsystem team",
6
6
  "license": "MIT",
@@ -40,8 +40,6 @@
40
40
  "url": "https://github.com/navikt/aksel/issues"
41
41
  },
42
42
  "dependencies": {
43
- "@navikt/ds-css": "^8.13.1",
44
- "@navikt/ds-tokens": "^8.13.1",
45
43
  "chalk": "5.6.2",
46
44
  "cli-progress": "3.12.0",
47
45
  "clipboardy": "5.3.1",
@@ -51,7 +49,6 @@
51
49
  "figlet": "1.11.0",
52
50
  "is-git-clean": "1.1.0",
53
51
  "jscodeshift": "17.3.0",
54
- "jscodeshift-add-imports": "1.0.11",
55
52
  "lodash": "4.18.1"
56
53
  },
57
54
  "devDependencies": {
@@ -60,7 +57,7 @@
60
57
  "@types/jscodeshift": "17.3.0",
61
58
  "rimraf": "6.1.3",
62
59
  "typescript": "6.0.3",
63
- "vitest": "4.1.8"
60
+ "vitest": "4.1.9"
64
61
  },
65
62
  "sideEffects": false,
66
63
  "engines": {