@navikt/aksel 6.8.0 → 6.9.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.
- package/dist/codemod/migrations.js +5 -3
- package/dist/index.js +4 -6
- package/package.json +2 -2
|
@@ -89,19 +89,21 @@ exports.migrations = {
|
|
|
89
89
|
function getMigrationPath(str) {
|
|
90
90
|
var _a;
|
|
91
91
|
return (_a = Object.values(exports.migrations)
|
|
92
|
-
.
|
|
92
|
+
.flat()
|
|
93
93
|
.find((x) => x.value === str)) === null || _a === void 0 ? void 0 : _a.path;
|
|
94
94
|
}
|
|
95
95
|
exports.getMigrationPath = getMigrationPath;
|
|
96
96
|
function getWarning(str) {
|
|
97
97
|
var _a;
|
|
98
98
|
return (_a = Object.values(exports.migrations)
|
|
99
|
-
.
|
|
99
|
+
.flat()
|
|
100
100
|
.find((x) => x.value === str)) === null || _a === void 0 ? void 0 : _a.warning;
|
|
101
101
|
}
|
|
102
102
|
exports.getWarning = getWarning;
|
|
103
103
|
function getMigrationNames() {
|
|
104
|
-
return Object.values(exports.migrations)
|
|
104
|
+
return Object.values(exports.migrations)
|
|
105
|
+
.flat()
|
|
106
|
+
.map((x) => x.value);
|
|
105
107
|
}
|
|
106
108
|
exports.getMigrationNames = getMigrationNames;
|
|
107
109
|
function getMigrationString() {
|
package/dist/index.js
CHANGED
|
@@ -25,21 +25,19 @@ function run() {
|
|
|
25
25
|
(0, help_1.helpCommand)();
|
|
26
26
|
return;
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
if (process.argv[2] === "css-imports") {
|
|
29
29
|
yield (0, index_2.cssImportsCommand)();
|
|
30
30
|
return;
|
|
31
31
|
}
|
|
32
|
-
|
|
32
|
+
if (process.argv[2] === "codemod") {
|
|
33
33
|
(0, index_1.codemodCommand)();
|
|
34
34
|
return;
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
if (process.argv[2] === "-v" || process.argv[2] === "--version") {
|
|
37
37
|
const pkg = JSON.parse(fs_1.default.readFileSync("./package.json").toString()).version;
|
|
38
38
|
console.log(pkg);
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
console.log(chalk_1.default.red(`Unknown command: ${process.argv[2]}.\nRun ${chalk_1.default.cyan("npx @navikt/aksel help")} for all available commands.`));
|
|
43
|
-
}
|
|
41
|
+
console.log(chalk_1.default.red(`Unknown command: ${process.argv[2]}.\nRun ${chalk_1.default.cyan("npx @navikt/aksel help")} for all available commands.`));
|
|
44
42
|
});
|
|
45
43
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navikt/aksel",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.9.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": "6.
|
|
32
|
+
"@navikt/ds-css": "6.9.0",
|
|
33
33
|
"axios": "1.6.0",
|
|
34
34
|
"chalk": "4.1.0",
|
|
35
35
|
"clipboardy": "^2.3.0",
|