websnacks/package.json
M. George Hansen cb9c4342de fix: dev cmd didn't watch files due to import mangling
Appearently the esModuleInterop flag in TypeScript is not compatible
with node-watch, and the import helper was mangling the import as a
result and causing an error in the dev command that resulted in files
not being watched.

This fixes that import issue and adds an e2e test to help prevent a
regression of this issue in the future.
2020-06-09 13:56:11 -07:00

53 lines
1.6 KiB
JSON

{
"name": "@websnacksjs/websnacks",
"description": "Minimal dependency server-side JSX for static sites",
"version": "0.1.3",
"author": {
"name": "M. George Hansen",
"email": "mgeorge@technopolitica.com"
},
"license": "MPL-2.0",
"engines": {
"node": ">=10"
},
"main": "dist/index.js",
"types": "types.d.ts",
"bin": "bin/websnacks.js",
"files": [
"/bin/websnacks.js",
"/dist/**/*.js",
"/dist/**/*.d.ts",
"/dist/**/*.map",
"/src/**/*.ts",
"/index.d.ts"
],
"scripts": {
"build": "tsc",
"clean": "ts-node scripts/clean.ts",
"prepublishOnly": "npm run reset && npm test",
"pretest": "npm run build",
"preversion": "npm run reset && npm test",
"release": "npm version",
"reset": "npm run clean && npm ci",
"test": "npm run test:unit && npm run test:e2e",
"test:unit": "cd test && ts-node --script-mode ./run-tests.ts",
"test:e2e": "cd test && ts-node --script-mode ./run-e2e.ts"
},
"devDependencies": {
"@types/node": "~10",
"@types/ws": "^7.2.4",
"@typescript-eslint/eslint-plugin": "^3.0.2",
"@typescript-eslint/parser": "^3.0.2",
"eslint": "^7.1.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-react": "^7.20.0",
"prettier": "^2.0.5",
"ts-node": "^8.10.2",
"typescript": "~3.9.3"
},
"optionalDependencies": {
"node-watch": "^0.6.4",
"ws": "^7.3.0"
}
}