periderm-cli 0.1.61 → 0.1.62
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/scanner/repo-checks.js +13 -0
- package/package.json +1 -1
|
@@ -227,6 +227,19 @@ export async function runRepoChecks(root, _files, ctx) {
|
|
|
227
227
|
}
|
|
228
228
|
const runtimeDeps = Object.keys(pkg.dependencies ?? {});
|
|
229
229
|
const allDeps = [...runtimeDeps, ...Object.keys(pkg.devDependencies ?? {})];
|
|
230
|
+
// Deprecated / redundant build plugins
|
|
231
|
+
if (allDeps.includes("vite-tsconfig-paths")) {
|
|
232
|
+
out.push({
|
|
233
|
+
id: "redundant-vite-tsconfig-paths",
|
|
234
|
+
category: "Performance & Bundle Size",
|
|
235
|
+
severity: "medium",
|
|
236
|
+
file: "package.json", line: 1,
|
|
237
|
+
message: 'The plugin "vite-tsconfig-paths" is detected. Vite now supports tsconfig paths resolution natively via the resolve.tsconfigPaths option.',
|
|
238
|
+
why: "Vite added native support for tsconfig paths. Using an external plugin adds unnecessary build overhead and potential bugs.",
|
|
239
|
+
fix: "Remove the plugin from package.json and vite.config.ts, and set `resolve.tsconfigPaths: true` in your Vite config instead.",
|
|
240
|
+
aiPrompt: "Remove `vite-tsconfig-paths` from package.json and vite.config.ts, and enable native path resolution by adding `resolve: { tsconfigPaths: true }` to the vite config.",
|
|
241
|
+
});
|
|
242
|
+
}
|
|
230
243
|
// Build one combined haystack of source imports so we can answer
|
|
231
244
|
// "is this dep actually imported anywhere?" and "is this class used?".
|
|
232
245
|
let importHaystack = "";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "periderm-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.62",
|
|
4
4
|
"description": "Periderm CLI: A pre-launch checklist to catch user-losing bugs, legal liabilities, revenue leaks, runaway cloud bills and so many more before you ship.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"preferGlobal": true,
|