@panneau/codemods 5.0.0-alpha.6 → 5.0.0-alpha.8

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 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
@@ -1,4 +1,4 @@
1
- import type { Finding } from './context';
1
+ import type { Finding } from './context.js';
2
2
  export interface RunOptions {
3
3
  /** Files and folders to rewrite. Folders are read recursively, without `node_modules`. */
4
4
  paths: readonly string[];
@@ -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;
@@ -1,3 +1,3 @@
1
- import { type TransformApi } from '../context';
1
+ import { type TransformApi } from '../context.js';
2
2
  export declare function transformFields(api: TransformApi): void;
3
3
  //# sourceMappingURL=fields.d.ts.map
@@ -1,3 +1,3 @@
1
- import { type TransformApi } from '../context';
1
+ import { type TransformApi } from '../context.js';
2
2
  export declare function transformImports(api: TransformApi): void;
3
3
  //# sourceMappingURL=imports.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panneau/codemods",
3
- "version": "5.0.0-alpha.6",
3
+ "version": "5.0.0-alpha.8",
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 && tsc -p tsconfig.build.json",
32
+ "build": "vite build && node ../../scripts/declarations.js",
33
33
  "typecheck": "tsc --noEmit",
34
- "api": "tsc -p tsconfig.build.json && node ../../scripts/api-report.js"
34
+ "api": "node ../../scripts/declarations.js && node ../../scripts/api-report.js"
35
35
  },
36
36
  "publishConfig": {
37
37
  "access": "public"