0.1.15 • Published 4 years ago

@compgen/ts-node v0.1.15

Weekly downloads
249
License
MIT
Repository
-
Last release
4 years ago

@compgen/ts-node

A micro generator for generating ts-node configuration.

CLI

I highly recommend using npx so that you don't have to install anything globally, and you can always get the latest version from npm.

  • optional --path=target_folder
npx @compgen/ts-node

Programmatically

You have to generate JSON schema and use execute function from @compgen/core:

// src/index.ts
import { execute, getProjectFolder } from '@compgen/core'
import { createSchema } from '@compgen/ts-node'

const generate = async () => {
  const projectFolder = getProjectFolder() ?? '.'

  const schema = createSchema()
  await execute(schema, projectFolder)
}

generate()

Now all you have to do is run:

ts-node src/index.ts
0.1.14

4 years ago

0.1.15

4 years ago

0.1.13

4 years ago

0.1.12

4 years ago

0.1.11

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.4

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

1.0.0

5 years ago