Skip to content

Commit c49154c

Browse files
committed
chore: update build scripts for TypeScript
1 parent 0506e74 commit c49154c

File tree

3 files changed

+5
-14
lines changed

3 files changed

+5
-14
lines changed

babel.config.js

Lines changed: 0 additions & 10 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010
"test.format": "prettier . --check",
1111
"lint": "eslint . --fix",
1212
"test.lint": "eslint .",
13-
"test": "npm run babel && atom --test spec",
13+
"test": "npm run build.unit && npm run test.only",
14+
"test.only": "atom --test spec",
1415
"clean": "shx rm -rf dist",
15-
"babel": "cross-env BABEL_KEEP_MODULES=false babel ./src --out-dir ./dist",
16+
"build.unit": "tsc -p ./src/tsconfig.json || echo done",
1617
"dev": "npm run clean && cross-env NODE_ENV=development cross-env BABEL_KEEP_MODULES=true rollup -c -w",
1718
"build": "npm run clean && cross-env NODE_ENV=production cross-env BABEL_KEEP_MODULES=true rollup -c ",
1819
"build-commit": "build-commit -o dist",

rollup.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { createPlugins } from "rollup-plugin-atomic"
22

3-
const plugins = createPlugins(["js", "babel", "json"])
3+
const plugins = createPlugins([["ts", { tsconfig: "./src/tsconfig.json" }, true], "js", "json"])
44

55
const RollupConfig = [
66
{
7-
input: "src/main.js",
7+
input: "src/main.ts",
88
output: [
99
{
1010
dir: "dist",

0 commit comments

Comments
 (0)