Skip to content

Commit

Permalink
Fix automation script
Browse files Browse the repository at this point in the history
  • Loading branch information
marcbouchenoire committed Nov 24, 2021
1 parent 3c5c381 commit 0c49736
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions packages/symbolist/scripts/generate.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import withApp from "app-exists"
import Listr from "listr"
import * as prettier from "prettier"
import writeFile from "write-file-atomic"
import { writeJsonFile } from "write-json-file"
import { SymbolName } from "../src"
Expand Down Expand Up @@ -102,16 +101,9 @@ const tasks = new Listr([
},
{
task: async (context: Context) => {
const options = await prettier.resolveConfig(".prettierrc")
const types = context.names.map((name) => `"${name}"`).join(" | ")

await writeFile(
TYPES,
prettier.format(`export type SymbolName = ${types}`, {
...options,
parser: "typescript"
})
)
await writeFile(TYPES, `export type SymbolName = ${types}`)
},
title: "Generating types"
},
Expand Down

0 comments on commit 0c49736

Please sign in to comment.