diff --git a/package.json b/package.json index 486a628..851ba2e 100644 --- a/package.json +++ b/package.json @@ -10,15 +10,15 @@ }, "scripts": { "start": "node lib/index.js", - "start:server": "nodemon --ignore build/ --ignore lib/client", - "start:watch": "npm run ts && chastifol [ npm run ts:watch ] [ npm run js:watch ] [ npm run css:watch ] [ npm run start:server ]", + "start:server": "nodemon -e ts,tsx --ignore src/client -x ts-node src/index.ts", + "start:watch": "chastifol [ npm run js:watch ] [ npm run css:watch ] [ npm run start:server ]", "prepublishOnly": "npm run build", "build": "npm run css && npm run ts && npm run js && npm run js:uglify", "test": "jest", "test:coverage": "jest --coverage", "test:watch": "jest --watch", "js": "browserify -g [ loose-envify purge --NODE_ENV production ] -t babelify ./lib/client/index.js -o ./build/index.prod.js", - "js:watch": "watchify ./lib/client/index.js -v -d -o ./build/index.js", + "js:watch": "watchify -p tsify ./src/client/index.tsx -v -d -o ./build/index.js", "js:uglify": "minify build/index.prod.js -o build/index.js", "css": "node-sass ./src/scss/style.scss -o ./build/", "css:watch": "npm run css && node-sass --watch ./src/scss/style.scss -o ./build/",