1
Fork 0
A small, hacky Rollup plugin for TypeScript https://conduitry.dev/cheap-ts
Go to file
Conduitry f64d1185f5 v1.0.1 2018-11-10 14:01:31 -05:00
src hopefully fix windows builds 2018-11-10 14:00:44 -05:00
.gitignore initial version 2018-11-10 11:42:15 -05:00
LICENSE add license 2018-11-10 13:01:18 -05:00
README.md update readme 2018-11-10 14:01:16 -05:00
package.json v1.0.1 2018-11-10 14:01:31 -05:00
rollup.config.js initial version 2018-11-10 11:42:15 -05:00

README.md

rollup-plugin-cheap-ts

A hacky lightweight Rollup plugin for transpiling and bundling libraries written in TypeScript.

Installation

This is not published to npm. Install from Git tags.

Usage

Include the plugin in your rollup.config.js:

import cheapTS from 'rollup-plugin-cheap-ts';

export default {
	// ...
	plugins: [
		// ...
		cheapTS(),
		// ...
	],
};

You must have a tsconfig.json in the same directory as your rollup.config.js. This file must specify an "include": [] array, as this is used when calling the tsc binary so it knows which .ts files to compile.

All references to TypeScript files must be extensionless, and all extensionless imports must be TypeScript files.

License

Copyright (c) 2018 Conduitry