@navikt/aksel 7.2.0 → 7.3.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.
@@ -30,7 +30,7 @@ function validateGit(options, program) {
30
30
  clean = is_git_clean_1.default.sync(process.cwd());
31
31
  }
32
32
  catch (err) {
33
- if (err && err.stderr && err.stderr.indexOf("Not a git repository") >= 0) {
33
+ if ((err === null || err === void 0 ? void 0 : err.stderr) && err.stderr.indexOf("Not a git repository") >= 0) {
34
34
  clean = true;
35
35
  }
36
36
  }
@@ -18,7 +18,7 @@ function getAllVersions() {
18
18
  return __awaiter(this, void 0, void 0, function* () {
19
19
  try {
20
20
  const npmPackageData = yield axios_1.default.get(`https://registry.npmjs.org/@navikt/ds-css`);
21
- return Object.keys(npmPackageData.data["versions"]);
21
+ return Object.keys(npmPackageData.data.versions);
22
22
  }
23
23
  catch (e) {
24
24
  console.error(e);
@@ -136,7 +136,7 @@ function cssImportsCommand() {
136
136
  },
137
137
  ]));
138
138
  let foundComponents = [];
139
- if (answers["autoscan"] === "yes") {
139
+ if (answers.autoscan === "yes") {
140
140
  foundComponents = yield new Promise((resolve) => {
141
141
  (0, child_process_1.exec)(`node ${__dirname}/scan-code.js ${answers.scandir}`, (_, stdout) => {
142
142
  resolve(stdout ? JSON.parse(stdout.trim().split("\n").slice(1).join("")) : []);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navikt/aksel",
3
- "version": "7.2.0",
3
+ "version": "7.3.0",
4
4
  "description": "Aksel command line interface. Handles css-imports, codemods and more",
5
5
  "author": "Aksel | NAV designsystem team",
6
6
  "license": "MIT",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "homepage": "https://aksel.nav.no/grunnleggende/kode/kommandolinje",
31
31
  "dependencies": {
32
- "@navikt/ds-css": "7.2.0",
32
+ "@navikt/ds-css": "7.3.0",
33
33
  "axios": "1.7.4",
34
34
  "chalk": "4.1.0",
35
35
  "clipboardy": "^2.3.0",
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "devDependencies": {
47
47
  "rimraf": "6.0.1",
48
- "typescript": "^5.1.6",
48
+ "typescript": "5.5.4",
49
49
  "vitest": "^1.2.2"
50
50
  },
51
51
  "sideEffects": false,