refactor: rename package from inline-schema to typed-csv
This commit is contained in:
@@ -13,12 +13,12 @@ No linter or formatter is configured. No CI pipeline exists.
|
||||
|
||||
Single-package TypeScript library with two runtime entry points:
|
||||
|
||||
- **`inline-schema`** (`src/index.ts`) — core schema parser, value parser, and validator
|
||||
- **`typed-csv`** (`src/index.ts`) — core schema parser, value parser, and validator
|
||||
- `src/parser.ts` — `parseSchema()` turns schema strings into AST (`Schema` type)
|
||||
- `src/validator.ts` — `parseValue()` and `createValidator()` operate on the AST
|
||||
- `src/types.ts` — union type `Schema = Primitive | Tuple | Array | Reference | StringLiteral | Union`
|
||||
|
||||
- **`inline-schema/csv-loader`** (`src/csv-loader/loader.ts`) — CSV loader with `@table` reference resolution
|
||||
- **`typed-csv/csv-loader`** (`src/csv-loader/loader.ts`) — CSV loader with `@table` reference resolution
|
||||
- `loader.ts` — `parseCsv()` (eager resolution) and `csvToModule()` (accessor-based output with lazy resolution); `resolveReferences: false` mode stores IDs instead of resolved objects
|
||||
- `webpack.ts`, `rollup.ts`, `esbuild.ts` — bundler plugin wrappers around `csvToModule`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user