diff --git a/package.json b/package.json index 4a50454b..888adc55 100644 --- a/package.json +++ b/package.json @@ -23,9 +23,10 @@ "author": "@ezolenko", "scripts": { "prebuild": "rimraf dist/*", - "build": "rimraf dist/* && rollup -c", - "watch": "rollup -c rollup.config.self.js -w ", - "build-self": "rimraf dist/* && rollup -c rollup.config.self.js", + "build": "rollup -c rollup.config.ts --configPlugin typescript2", + "_build-self": "rollup -c rollup.config.self.ts --configPlugin ./build-self/dist/rollup-plugin-typescript2.es", + "watch": "npm run _build-self -- -w ", + "build-self": "rimraf dist/* && npm run _build-self", "lint": "tslint -c ./tslint.json src/*.ts __tests__/*.ts ./*.js", "test": "jest", "test:watch": "jest --watch", diff --git a/rollup.config.base.js b/rollup.config.base.ts similarity index 100% rename from rollup.config.base.js rename to rollup.config.base.ts diff --git a/rollup.config.self.js b/rollup.config.self.ts similarity index 100% rename from rollup.config.self.js rename to rollup.config.self.ts diff --git a/rollup.config.js b/rollup.config.ts similarity index 100% rename from rollup.config.js rename to rollup.config.ts