refactor: rename package from inline-schema to typed-csv
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user