@arcgis/codemod 5.2.0-next.3 → 5.2.0-next.31
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/actions-DhPreNjO.js +354 -0
- package/dist/{cli-mQ3ZNyiH.js → cli-Bd8qr2gt.js} +91 -82
- package/dist/cli.js +3 -2
- package/dist/codemod-BM-syCz5.js +106 -0
- package/dist/{codemod-ul_pPsIY.js → codemod-Ce4JSf53.js} +5 -4
- package/dist/{codemod-wiEaN6_r.js → codemod-DPYQ1AvG.js} +44 -75
- package/dist/codemod-DyAGLMzu.js +436 -0
- package/dist/packageJson-BLIoQkL0.js +39 -0
- package/dist/useProjectInstance-Cj8A3A2H.js +50 -0
- package/package.json +4 -3
- package/dist/useProjectInstance-BeTuT4eH.js +0 -398
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
var p = (i, e) => (e = Symbol[i]) ? e : /* @__PURE__ */ Symbol.for("Symbol." + i), g = (i) => {
|
|
2
|
+
throw TypeError(i);
|
|
3
|
+
};
|
|
4
|
+
var f = (i, e, t) => {
|
|
5
|
+
if (e != null) {
|
|
6
|
+
typeof e != "object" && typeof e != "function" && g("Object expected");
|
|
7
|
+
var a, n;
|
|
8
|
+
t && (a = e[p("asyncDispose")]), a === void 0 && (a = e[p("dispose")], t && (n = a)), typeof a != "function" && g("Object not disposable"), n && (a = function() {
|
|
9
|
+
try {
|
|
10
|
+
n.call(this);
|
|
11
|
+
} catch (r) {
|
|
12
|
+
return Promise.reject(r);
|
|
13
|
+
}
|
|
14
|
+
}), i.push([t, a, e]);
|
|
15
|
+
} else t && i.push([t]);
|
|
16
|
+
return e;
|
|
17
|
+
}, m = (i, e, t) => {
|
|
18
|
+
var a = typeof SuppressedError == "function" ? SuppressedError : function(o, s, c, d) {
|
|
19
|
+
return d = Error(c), d.name = "SuppressedError", d.error = o, d.suppressed = s, d;
|
|
20
|
+
}, n = (o) => e = t ? new a(o, e, "An error was suppressed during disposal") : (t = !0, o), r = (o) => {
|
|
21
|
+
for (; o = i.pop(); )
|
|
22
|
+
try {
|
|
23
|
+
var s = o[1] && o[1].call(o[2]);
|
|
24
|
+
if (o[0]) return Promise.resolve(s).then(r, (c) => (n(c), r()));
|
|
25
|
+
} catch (c) {
|
|
26
|
+
n(c);
|
|
27
|
+
}
|
|
28
|
+
if (t) throw e;
|
|
29
|
+
};
|
|
30
|
+
return r();
|
|
31
|
+
};
|
|
32
|
+
import { p as k } from "./actions-DhPreNjO.js";
|
|
33
|
+
import { f as P, a as h } from "./packageJson-BLIoQkL0.js";
|
|
34
|
+
import { c as y } from "./useProjectInstance-Cj8A3A2H.js";
|
|
35
|
+
import { p as u, g as x } from "./cli-Bd8qr2gt.js";
|
|
36
|
+
import { log as J } from "@arcgis/toolkit/log";
|
|
37
|
+
const l = "@arcgis/components-build-utils", v = {
|
|
38
|
+
[l]: {
|
|
39
|
+
existsAsync: { do: "rename", specifier: "@arcgis/node-toolkit/file" },
|
|
40
|
+
sh: { do: "rename", specifier: "@arcgis/node-toolkit/file" },
|
|
41
|
+
sp: { do: "rename", specifier: "@arcgis/node-toolkit/file" },
|
|
42
|
+
asyncSh: { do: "rename", specifier: "@arcgis/node-toolkit/file" },
|
|
43
|
+
findPath: { do: "rename", specifier: "@arcgis/node-toolkit/file" },
|
|
44
|
+
asyncFindPath: { do: "rename", specifier: "@arcgis/node-toolkit/file" },
|
|
45
|
+
createFileIfNotExists: { do: "rename", specifier: "@arcgis/node-toolkit/file" },
|
|
46
|
+
gitIgnoreFileToGlobs: { do: "rename", specifier: "@arcgis/node-toolkit/glob" },
|
|
47
|
+
gitIgnoreToGlob: { do: "rename", specifier: "@arcgis/node-toolkit/glob" },
|
|
48
|
+
isPosix: { do: "rename", specifier: "@arcgis/node-toolkit/path" },
|
|
49
|
+
toPosixPathSeparators: { do: "rename", specifier: "@arcgis/node-toolkit/path" },
|
|
50
|
+
normalizePath: { do: "rename", specifier: "@arcgis/node-toolkit/path" },
|
|
51
|
+
toSystemPathSeparators: { do: "rename", specifier: "@arcgis/node-toolkit/path" },
|
|
52
|
+
getCwd: { do: "rename", specifier: "@arcgis/node-toolkit/path" },
|
|
53
|
+
path: { do: "rename", specifier: "@arcgis/node-toolkit/path" },
|
|
54
|
+
PackageJson: { do: "rename", specifier: "@arcgis/node-toolkit/packageJson" },
|
|
55
|
+
retrievePackageJson: { do: "rename", specifier: "@arcgis/node-toolkit/packageJson" },
|
|
56
|
+
asyncRetrievePackageJson: { do: "rename", specifier: "@arcgis/node-toolkit/packageJson" },
|
|
57
|
+
fetchPackageLocation: { do: "rename", specifier: "@arcgis/node-toolkit/packageJson" },
|
|
58
|
+
detectPackageManager: { do: "rename", specifier: "@arcgis/node-toolkit/packageJson" },
|
|
59
|
+
DependencyManagementOptions: {
|
|
60
|
+
do: "rename",
|
|
61
|
+
specifier: "@arcgis/node-toolkit/vite/externalizeDependenciesPlugin"
|
|
62
|
+
},
|
|
63
|
+
vitePresetPlugin: { do: "rename", specifier: "@arcgis/node-toolkit/vite/presetPlugin" },
|
|
64
|
+
externalizeDependencies: {
|
|
65
|
+
do: "rename",
|
|
66
|
+
specifier: "@arcgis/node-toolkit/vite/externalizeDependenciesPlugin"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}, A = {
|
|
70
|
+
meta: {
|
|
71
|
+
needsTypeInformation: !1
|
|
72
|
+
},
|
|
73
|
+
async run(i) {
|
|
74
|
+
await P(
|
|
75
|
+
i,
|
|
76
|
+
(r) => h(
|
|
77
|
+
r,
|
|
78
|
+
(o) => o[l] ? {
|
|
79
|
+
...o,
|
|
80
|
+
[l]: void 0,
|
|
81
|
+
"@arcgis/node-toolkit": o[l]
|
|
82
|
+
} : o
|
|
83
|
+
)
|
|
84
|
+
);
|
|
85
|
+
for (const r of i) {
|
|
86
|
+
var e = [];
|
|
87
|
+
try {
|
|
88
|
+
const o = f(e, y(r));
|
|
89
|
+
for (const s of o.getCodemodFiles())
|
|
90
|
+
k(s, v);
|
|
91
|
+
} catch (t) {
|
|
92
|
+
var a = t, n = !0;
|
|
93
|
+
} finally {
|
|
94
|
+
m(e, a, n);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
u(), J(
|
|
98
|
+
"info",
|
|
99
|
+
x.codemodName,
|
|
100
|
+
"Next step: run npm install/pnpm install/yarn install to get @arcgis/node-toolkit package installed."
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
export {
|
|
105
|
+
A as codemod
|
|
106
|
+
};
|