Skip to content

Commit 45dbb6b

Browse files
committed
fixup! Added CSV Importer example
1 parent 095e411 commit 45dbb6b

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

examples/csv-importer/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This example shows how to import a CSV file into a Framer collection.
55
How to use:
66

77
```bash
8-
npx tsx --env-file=../../.env src/csv-to-collection.ts
8+
node --env-file=../../.env src/csv-to-collection.ts
99

1010
bun run src/csv-to-collection.ts
1111

examples/csv-importer/src/csv-to-collection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import assert from "node:assert";
22
import path from "node:path";
33
import { type CreateField, connect, type FieldDataEntryInput, type FieldDataInput } from "framer-api";
4-
import { type FieldType, loadCsv } from "./load-csv";
4+
import { type FieldType, loadCsv } from "./load-csv.ts";
55

66
// Configuration
77

tsconfig.base.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
22
"compilerOptions": {
33
"target": "ES2022",
4-
"module": "ESNext",
5-
"moduleResolution": "bundler",
4+
"module": "NodeNext",
5+
"moduleResolution": "NodeNext",
6+
"allowImportingTsExtensions": true,
67
"noEmit": true,
78
"esModuleInterop": true,
89
"resolveJsonModule": true,

0 commit comments

Comments
 (0)