Skip to content

Commit

Permalink
chore: fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Jan 20, 2021
1 parent 09c72fe commit 9147efc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"start": "npm run build -- -w",
"clean": "del-cli dist",
"prebuild": "npm run clean",
"_build:types": "tsc --declaration --emitDeclarationOnly --outDir declarations && prettier \"declarations/**/*.ts\" --write",
"_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",
Expand All @@ -39,7 +39,7 @@
},
"files": [
"dist",
"declarations"
"types"
],
"peerDependencies": {
"webpack": "^5.1.0"
Expand Down
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import { minify as minifyFn } from "./minify";
/** @typedef {import("webpack").Compilation} Compilation */
/** @typedef {import("webpack").WebpackError} WebpackError */
/** @typedef {import("webpack").Asset} Asset */
/** @typedef {import("webpack").AssetInfo} AssetInfo */
/** @typedef {import("terser").ECMA} TerserECMA */
/** @typedef {import("terser").MinifyOptions} TerserMinifyOptions */
/** @typedef {import("jest-worker").default} JestWorker */
Expand Down Expand Up @@ -486,7 +485,7 @@ class TerserPlugin {
});
}

/** @type {AssetInfo} */
/** @type {Record<string, any>} */
const newInfo = { minimized: true };
const { source, extractedCommentsSource } = output;

Expand Down

0 comments on commit 9147efc

Please sign in to comment.