Skip to content

Commit

Permalink
feat: added types and refactor (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Dec 6, 2021
1 parent de78e90 commit 67338f0
Show file tree
Hide file tree
Showing 12 changed files with 601 additions and 59 deletions.
37 changes: 31 additions & 6 deletions package-lock.json

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

12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,22 @@
"url": "https://opencollective.com/webpack"
},
"main": "dist/cjs.js",
"types": "types/cjs.d.ts",
"engines": {
"node": ">= 12.13.0"
},
"scripts": {
"start": "npm run build -- -w",
"clean": "del-cli dist",
"prebuild": "npm run clean",
"build": "cross-env NODE_ENV=production 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:**\"",
"commitlint": "commitlint --from=master",
"security": "npm audit",
"lint:prettier": "prettier \"{**/*,*}.{js,json,md,yml,css,ts}\" --list-different",
"lint:js": "eslint --cache .",
"lint:types": "tsc --pretty --noEmit",
"lint": "npm-run-all -l -p \"lint:**\"",
"test:only": "cross-env NODE_ENV=test jest",
"test:watch": "npm run test:only -- --watch",
Expand All @@ -34,12 +38,14 @@
"release": "standard-version"
},
"files": [
"dist"
"dist",
"types"
],
"peerDependencies": {
"webpack": "^5.1.0"
},
"dependencies": {
"@types/html-minifier-terser": "^6.1.0",
"html-minifier-terser": "^6.0.0",
"jest-worker": "^27.0.6",
"schema-utils": "^4.0.0",
Expand All @@ -51,6 +57,7 @@
"@babel/preset-env": "^7.15.0",
"@commitlint/cli": "^15.0.0",
"@commitlint/config-conventional": "^15.0.0",
"@types/serialize-javascript": "^5.0.1",
"@webpack-contrib/eslint-config-webpack": "^3.0.0",
"babel-jest": "^27.0.6",
"copy-webpack-plugin": "^9.0.1",
Expand All @@ -67,6 +74,7 @@
"npm-run-all": "^4.1.5",
"prettier": "^2.3.2",
"standard-version": "^9.3.1",
"typescript": "^4.5.2",
"webpack": "^5.64.1"
},
"keywords": [
Expand Down

0 comments on commit 67338f0

Please sign in to comment.