type-scripts

1.2.1 • Public • Published

code style: prettier lerna

type-scripts

Scripts to help develop, test, and build Typescript packages.

Tutorial

Here's a quick tutorial on how to build a Typescript package with type-scripts.

Step 1: Initialize the Package

mkdir my-cool-pkg
cd my-cool-pkg
 
yarn init

Step 2: Setup types-scripts

Install type-scripts

yarn add --dev type-scripts

And then setup your build script in the package.json.

package.json

{
  "scripts": {
    "build": "type-scripts-build"
  }
}

Step 3: Add the index.ts

src/index.ts

export default function() {
  console.log("Hello World")
}

Step 4: Build your package

yarn build

You're package will be output to build/my-cool-pkg.js

Readme

Keywords

none

Package Sidebar

Install

npm i type-scripts

Weekly Downloads

2

Version

1.2.1

License

MIT

Unpacked Size

9.65 kB

Total Files

9

Last publish

Collaborators

  • ncphillips