diff --git a/demo/genaisrc/jsconfig.json b/demo/genaisrc/jsconfig.json index 566a2e15e4..edf1f30e93 100644 --- a/demo/genaisrc/jsconfig.json +++ b/demo/genaisrc/jsconfig.json @@ -6,7 +6,6 @@ "target": "ES2022", "module": "ES2022", "moduleDetection": "force", - "moduleResolution": "node", "checkJs": true, "allowJs": true, "skipLibCheck": true diff --git a/docs/genaisrc/jsconfig.json b/docs/genaisrc/jsconfig.json index 566a2e15e4..edf1f30e93 100644 --- a/docs/genaisrc/jsconfig.json +++ b/docs/genaisrc/jsconfig.json @@ -6,7 +6,6 @@ "target": "ES2022", "module": "ES2022", "moduleDetection": "force", - "moduleResolution": "node", "checkJs": true, "allowJs": true, "skipLibCheck": true diff --git a/genaisrc/jsconfig.json b/genaisrc/jsconfig.json index 566a2e15e4..edf1f30e93 100644 --- a/genaisrc/jsconfig.json +++ b/genaisrc/jsconfig.json @@ -6,7 +6,6 @@ "target": "ES2022", "module": "ES2022", "moduleDetection": "force", - "moduleResolution": "node", "checkJs": true, "allowJs": true, "skipLibCheck": true diff --git a/packages/core/bundleprompts.mjs b/packages/core/bundleprompts.mjs index 8cac6c7dab..f1b11df443 100644 --- a/packages/core/bundleprompts.mjs +++ b/packages/core/bundleprompts.mjs @@ -29,7 +29,6 @@ const promptDefs = { target: "ES2022", module: "ES2022", moduleDetection: "force", - moduleResolution: "node", checkJs: true, allowJs: true, skipLibCheck: true, diff --git a/packages/core/src/genaisrc/jsconfig.json b/packages/core/src/genaisrc/jsconfig.json index 566a2e15e4..edf1f30e93 100644 --- a/packages/core/src/genaisrc/jsconfig.json +++ b/packages/core/src/genaisrc/jsconfig.json @@ -6,7 +6,6 @@ "target": "ES2022", "module": "ES2022", "moduleDetection": "force", - "moduleResolution": "node", "checkJs": true, "allowJs": true, "skipLibCheck": true diff --git a/packages/sample/genaisrc/csv.genai.mjs b/packages/sample/genaisrc/csv.genai.mjs index 2d0c80d675..424cdcf8b6 100644 --- a/packages/sample/genaisrc/csv.genai.mjs +++ b/packages/sample/genaisrc/csv.genai.mjs @@ -1,4 +1,4 @@ -import { tidy, sliceHead } from "@tidyjs/tidy" +import * as ini from "ini" script({ files: "src/penguins.csv", @@ -11,9 +11,11 @@ def("DATA", env.files, { sliceHead: 3 }) def("DATA", env.files, { sliceTail: 3 }) const csv = env.files[0].content +const inirows = ini.parse(csv) const rows = CSV.parse(csv) const prows = parsers.CSV(csv) if (JSON.stringify(rows) !== JSON.stringify(prows)) throw new Error("csv error") +if (JSON.stringify(rows) !== JSON.stringify(inirows)) throw new Error("csv error") const srows = CSV.parse( `A|1 @@ -30,8 +32,4 @@ if ( ) throw new Error("csv error") -tidy(srows, sliceHead(1)) -if (JSON.stringify(srows) === JSON.stringify([{ name: "A", value: 1 }])) - throw new Error("csv error") - $`Describe the data in DATA.` diff --git a/packages/sample/genaisrc/jsconfig.json b/packages/sample/genaisrc/jsconfig.json index 566a2e15e4..edf1f30e93 100644 --- a/packages/sample/genaisrc/jsconfig.json +++ b/packages/sample/genaisrc/jsconfig.json @@ -6,7 +6,6 @@ "target": "ES2022", "module": "ES2022", "moduleDetection": "force", - "moduleResolution": "node", "checkJs": true, "allowJs": true, "skipLibCheck": true diff --git a/packages/sample/genaisrc/node/jsconfig.json b/packages/sample/genaisrc/node/jsconfig.json index 566a2e15e4..edf1f30e93 100644 --- a/packages/sample/genaisrc/node/jsconfig.json +++ b/packages/sample/genaisrc/node/jsconfig.json @@ -6,7 +6,6 @@ "target": "ES2022", "module": "ES2022", "moduleDetection": "force", - "moduleResolution": "node", "checkJs": true, "allowJs": true, "skipLibCheck": true diff --git a/packages/sample/genaisrc/python/jsconfig.json b/packages/sample/genaisrc/python/jsconfig.json index 566a2e15e4..edf1f30e93 100644 --- a/packages/sample/genaisrc/python/jsconfig.json +++ b/packages/sample/genaisrc/python/jsconfig.json @@ -6,7 +6,6 @@ "target": "ES2022", "module": "ES2022", "moduleDetection": "force", - "moduleResolution": "node", "checkJs": true, "allowJs": true, "skipLibCheck": true diff --git a/packages/sample/genaisrc/style/jsconfig.json b/packages/sample/genaisrc/style/jsconfig.json index 566a2e15e4..edf1f30e93 100644 --- a/packages/sample/genaisrc/style/jsconfig.json +++ b/packages/sample/genaisrc/style/jsconfig.json @@ -6,7 +6,6 @@ "target": "ES2022", "module": "ES2022", "moduleDetection": "force", - "moduleResolution": "node", "checkJs": true, "allowJs": true, "skipLibCheck": true diff --git a/packages/sample/src/aici/jsconfig.json b/packages/sample/src/aici/jsconfig.json index 566a2e15e4..edf1f30e93 100644 --- a/packages/sample/src/aici/jsconfig.json +++ b/packages/sample/src/aici/jsconfig.json @@ -6,7 +6,6 @@ "target": "ES2022", "module": "ES2022", "moduleDetection": "force", - "moduleResolution": "node", "checkJs": true, "allowJs": true, "skipLibCheck": true diff --git a/packages/sample/src/errors/jsconfig.json b/packages/sample/src/errors/jsconfig.json index 566a2e15e4..edf1f30e93 100644 --- a/packages/sample/src/errors/jsconfig.json +++ b/packages/sample/src/errors/jsconfig.json @@ -6,7 +6,6 @@ "target": "ES2022", "module": "ES2022", "moduleDetection": "force", - "moduleResolution": "node", "checkJs": true, "allowJs": true, "skipLibCheck": true diff --git a/packages/sample/src/makecode/jsconfig.json b/packages/sample/src/makecode/jsconfig.json index 566a2e15e4..edf1f30e93 100644 --- a/packages/sample/src/makecode/jsconfig.json +++ b/packages/sample/src/makecode/jsconfig.json @@ -6,7 +6,6 @@ "target": "ES2022", "module": "ES2022", "moduleDetection": "force", - "moduleResolution": "node", "checkJs": true, "allowJs": true, "skipLibCheck": true diff --git a/packages/sample/src/tla/jsconfig.json b/packages/sample/src/tla/jsconfig.json index 566a2e15e4..edf1f30e93 100644 --- a/packages/sample/src/tla/jsconfig.json +++ b/packages/sample/src/tla/jsconfig.json @@ -6,7 +6,6 @@ "target": "ES2022", "module": "ES2022", "moduleDetection": "force", - "moduleResolution": "node", "checkJs": true, "allowJs": true, "skipLibCheck": true diff --git a/packages/sample/src/vision/jsconfig.json b/packages/sample/src/vision/jsconfig.json index 566a2e15e4..edf1f30e93 100644 --- a/packages/sample/src/vision/jsconfig.json +++ b/packages/sample/src/vision/jsconfig.json @@ -6,7 +6,6 @@ "target": "ES2022", "module": "ES2022", "moduleDetection": "force", - "moduleResolution": "node", "checkJs": true, "allowJs": true, "skipLibCheck": true diff --git a/slides/genaisrc/jsconfig.json b/slides/genaisrc/jsconfig.json index 566a2e15e4..edf1f30e93 100644 --- a/slides/genaisrc/jsconfig.json +++ b/slides/genaisrc/jsconfig.json @@ -6,7 +6,6 @@ "target": "ES2022", "module": "ES2022", "moduleDetection": "force", - "moduleResolution": "node", "checkJs": true, "allowJs": true, "skipLibCheck": true