refactor: move to Typescript #146

Merged
mcataford merged 8 commits from typescript into master 2020-12-13 00:18:26 +00:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 3dee8b73b9 - Show all commits

View file

@ -19,7 +19,7 @@
"author": "Marc Cataford <c.marcandre@gmail.com>",
"license": "MIT",
"files": [
"dist/**/*.ts"
"dist/*.ts"
],
"bin": "./dist/cli.js",
"repository": {
@ -32,7 +32,7 @@
],
"scripts": {
"prebuild": "rimraf dist",
"build": "babel src -d dist --extensions .ts",
"build": "babel src/index.ts src/cli.ts -d dist --extensions .ts",
"lint": "eslint src/**/*.ts",
"lint:fix": "yarn lint --fix",
"test": "jest src",

View file

@ -3,6 +3,8 @@ import { readFileSync } from 'fs'
import mockFS from 'mock-fs'
import runPackwatch from '..'
jest.mock('child_process')
function getPackOutput({ packageSize, unpackedSize }) {
@ -26,8 +28,6 @@ npm notice
`
}
import runPackwatch from '.'
function getManifest() {
try {
return JSON.parse(readFileSync('.packwatch.json', { encoding: 'utf8' }))