refactor: rename package from inline-schema to typed-csv

This commit is contained in:
2026-06-13 10:22:18 +08:00
parent 89be2783d1
commit ea98399c24
6 changed files with 21 additions and 21 deletions
+2 -2
View File
@@ -39,7 +39,7 @@ function matchesPattern(
}
/**
* Esbuild plugin for loading CSV files with inline-schema validation.
* Esbuild plugin for loading CSV files with typed-csv validation.
*/
export function csvLoader(options: CsvEsbuildOptions = {}): Plugin {
const {
@@ -54,7 +54,7 @@ export function csvLoader(options: CsvEsbuildOptions = {}): Plugin {
const includeFilter = createFilter(include);
return {
name: "inline-schema-csv",
name: "typed-csv",
setup(build) {
build.onLoad({ filter: includeFilter }, async (args) => {
+2 -2
View File
@@ -53,7 +53,7 @@ interface RollupPlugin {
}
/**
* Rollup plugin for loading CSV files with inline-schema validation.
* Rollup plugin for loading CSV files with typed-csv validation.
* Works with both Vite and Tsup (esbuild).
*/
export function csvLoader(options: CsvRollupOptions = {}): RollupPlugin {
@@ -67,7 +67,7 @@ export function csvLoader(options: CsvRollupOptions = {}): RollupPlugin {
} = options;
return {
name: "inline-schema-csv",
name: "typed-csv",
transform(code: string, id: string) {
// Check if file matches the include/exclude patterns