@panneau/codemods 5.0.0-alpha.7 → 5.0.0-alpha.9
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/index.d.ts +4 -4
- package/dist/run.d.ts +1 -1
- package/dist/transform.d.ts +1 -1
- package/dist/transforms/bootstrap.d.ts +1 -1
- package/dist/transforms/entry.d.ts +1 -1
- package/dist/transforms/fieldEntries.d.ts +1 -1
- package/dist/transforms/fields.d.ts +1 -1
- package/dist/transforms/imports.d.ts +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type { Finding } from './context';
|
|
2
|
-
export { runCli } from './cli';
|
|
3
|
-
export { type RunOptions, type RunResult, formatReport, runCodemods } from './run';
|
|
4
|
-
export { type SourcesResult, transformSources } from './transform';
|
|
1
|
+
export type { Finding } from './context.js';
|
|
2
|
+
export { runCli } from './cli.js';
|
|
3
|
+
export { type RunOptions, type RunResult, formatReport, runCodemods } from './run.js';
|
|
4
|
+
export { type SourcesResult, transformSources } from './transform.js';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/run.d.ts
CHANGED
package/dist/transform.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type FileInfo, type Finding, type Project } from './context';
|
|
1
|
+
import { type FileInfo, type Finding, type Project } from './context.js';
|
|
2
2
|
/** Extensions of the files the codemods read. */
|
|
3
3
|
export declare const EXTENSIONS: readonly string[];
|
|
4
4
|
/** Reads what the codemods need to know about a file before rewriting the others. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { TransformApi } from '../context';
|
|
1
|
+
import type { TransformApi } from '../context.js';
|
|
2
2
|
/** Whether a class is one of Bootstrap 5 (and 4's `ml-*`, `sr-only`), or of Bootstrap Icons. */
|
|
3
3
|
export declare function isBootstrapClass(name: string): boolean;
|
|
4
4
|
/** Reports the Bootstrap classes of each `className` (or `*ClassName`) prop, with a TODO. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Collection, JSCodeshift } from 'jscodeshift';
|
|
2
|
-
import { type FileInfo, type TransformApi } from '../context';
|
|
2
|
+
import { type FileInfo, type TransformApi } from '../context.js';
|
|
3
3
|
/** What `analyze` reads about the entry of a file. */
|
|
4
4
|
export declare function readContainer(j: JSCodeshift, root: Collection): Pick<FileInfo, 'isContainer' | 'namespaces'>;
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ASTPath, Collection, JSCodeshift } from 'jscodeshift';
|
|
2
|
-
import { type TransformApi } from '../context';
|
|
2
|
+
import { type TransformApi } from '../context.js';
|
|
3
3
|
/** A component whose props the codemods read. */
|
|
4
4
|
export interface Component {
|
|
5
5
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@panneau/codemods",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.9",
|
|
4
4
|
"description": "Codemods that move Panneau 4 projects to Panneau 5: the app entry, imports and custom field components, with a report of what they can't rewrite.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"node": ">=22"
|
|
30
30
|
},
|
|
31
31
|
"scripts": {
|
|
32
|
-
"build": "vite build &&
|
|
32
|
+
"build": "vite build && node ../../scripts/declarations.js",
|
|
33
33
|
"typecheck": "tsc --noEmit",
|
|
34
|
-
"api": "
|
|
34
|
+
"api": "node ../../scripts/declarations.js && node ../../scripts/api-report.js"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public"
|