Skip to content

Commit

Permalink
feat: added types
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait authored Dec 15, 2021
1 parent f0b1f59 commit a2fa77f
Show file tree
Hide file tree
Showing 23 changed files with 1,284 additions and 212 deletions.
155 changes: 155 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,28 @@
"author": "Tobias Koppers @sokra",
"homepage": "https://github.com/webpack/webpack-dev-middleware",
"bugs": "https://github.com/webpack/webpack-dev-middleware/issues",
"main": "dist/cjs.js",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/webpack"
},
"main": "dist/cjs.js",
"types": "types/cjs.d.ts",
"engines": {
"node": ">= 12.13.0"
},
"scripts": {
"commitlint": "commitlint --from=master",
"fmt:check": "prettier \"{**/*,*}.{js,json,md,yml,css}\" --list-different",
"lint:js": "eslint --cache src test",
"lint:types": "tsc --pretty --noEmit",
"lint": "npm-run-all lint:js fmt:check",
"fmt": "npm run fmt:check -- --write",
"fix:js": "npm run lint:js -- --fix",
"fix": "npm-run-all fix:js fmt",
"prepare": "husky install && npm run build",
"build": "del dist && babel src -d dist --copy-files",
"build:types": "tsc --declaration --emitDeclarationOnly --outDir types && prettier \"types/**/*.ts\" --write",
"build:code": "cross-env NODE_ENV=production babel src -d dist --copy-files",
"build": "npm-run-all -p \"build:**\"",
"release": "standard-version",
"security": "npm audit --production",
"test:only": "cross-env NODE_ENV=test jest",
Expand All @@ -34,7 +38,8 @@
"test": "npm run test:coverage"
},
"files": [
"dist"
"dist",
"types"
],
"peerDependencies": {
"webpack": "^4.0.0 || ^5.0.0"
Expand All @@ -52,6 +57,9 @@
"@babel/preset-env": "^7.14.7",
"@commitlint/cli": "^15.0.0",
"@commitlint/config-conventional": "^15.0.0",
"@types/connect": "^3.4.35",
"@types/express": "^4.17.13",
"@types/mime-types": "^2.1.1",
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
"babel-jest": "^27.0.6",
"chokidar": "^3.5.1",
Expand Down
Loading

0 comments on commit a2fa77f

Please sign in to comment.