@equinor/roma-nx-plugin 0.0.22 → 0.0.23
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/migrations.json
CHANGED
package/package.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Tree } from '@nx/devkit';
|
|
2
|
-
export default function update(tree: Tree):
|
|
2
|
+
export default function update(tree: Tree): Promise<void>;
|
|
@@ -2,13 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
4
4
|
const devkit_1 = require("@nx/devkit");
|
|
5
|
-
function update(tree) {
|
|
5
|
+
async function update(tree) {
|
|
6
6
|
var _a;
|
|
7
7
|
const projects = (0, devkit_1.getProjects)(tree);
|
|
8
8
|
const remove = (0, devkit_1.removeDependenciesFromPackageJson)(tree, [], ['@equinor/fusion-framework-cli']);
|
|
9
|
-
const add = (0, devkit_1.addDependenciesToPackageJson)(tree, {
|
|
10
|
-
vite: '5.2.7',
|
|
11
|
-
}, {});
|
|
12
9
|
for (const [name, project] of projects) {
|
|
13
10
|
if (project.projectType !== 'application')
|
|
14
11
|
continue;
|
|
@@ -25,10 +22,16 @@ function update(tree) {
|
|
|
25
22
|
if (tree.exists(`${project.root}/vite.config.js`)) {
|
|
26
23
|
tree.delete(`${project.root}/vite.config.js`);
|
|
27
24
|
}
|
|
25
|
+
if (tree.exists(`${project.root}/.eslintrc.json`)) {
|
|
26
|
+
(0, devkit_1.updateJson)(tree, `${project.root}/.eslintrc.json`, (value) => (Object.assign(Object.assign({}, value), { parserOptions: {
|
|
27
|
+
sourceType: 'module',
|
|
28
|
+
} })));
|
|
29
|
+
}
|
|
28
30
|
tree.write(`${project.root}/vite.config.ts`, `import { defineConfig } from 'vite';
|
|
29
31
|
|
|
30
32
|
export default defineConfig({
|
|
31
33
|
build: {
|
|
34
|
+
minify: true,
|
|
32
35
|
lib: {
|
|
33
36
|
entry: 'src/index.ts',
|
|
34
37
|
fileName: 'app-bundle',
|
|
@@ -39,7 +42,7 @@ export default defineConfig({
|
|
|
39
42
|
`);
|
|
40
43
|
(0, devkit_1.updateProjectConfiguration)(tree, name, project);
|
|
41
44
|
}
|
|
42
|
-
return
|
|
45
|
+
return remove();
|
|
43
46
|
}
|
|
44
47
|
exports.default = update;
|
|
45
48
|
//# sourceMappingURL=remove-fusion-cli.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-fusion-cli.js","sourceRoot":"","sources":["../../../../../../plugins/roma/src/migrations/remove-fusion-cli/remove-fusion-cli.ts"],"names":[],"mappings":";;AAAA,sDAAsD;AACtD,uCAMoB;
|
|
1
|
+
{"version":3,"file":"remove-fusion-cli.js","sourceRoot":"","sources":["../../../../../../plugins/roma/src/migrations/remove-fusion-cli/remove-fusion-cli.ts"],"names":[],"mappings":";;AAAA,sDAAsD;AACtD,uCAMoB;AAWL,KAAK,UAAU,MAAM,CAAC,IAAU;;IAC7C,MAAM,QAAQ,GAAG,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;IACnC,MAAM,MAAM,GAAG,IAAA,0CAAiC,EAC9C,IAAI,EACJ,EAAE,EACF,CAAC,+BAA+B,CAAC,CAClC,CAAC;IAEF,KAAK,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,QAAQ,EAAE,CAAC;QACvC,IAAI,OAAO,CAAC,WAAW,KAAK,aAAa;YAAE,SAAS;QACpD,IAAI,QAAQ,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YAChC,OAAO,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC;QAChC,CAAC;QACD,IAAI,OAAO,IAAI,OAAO,CAAC,OAAO,EAAE,CAAC;YAC/B,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,KAAoB,CAAC;YACpD,IAAI,MAAA,MAAM,CAAC,OAAO,CAAC,MAAM,0CAAE,QAAQ,CAAC,WAA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