Skip to content

Commit

Permalink
Fix scripts for npm by extracting run command out
Browse files Browse the repository at this point in the history
  • Loading branch information
gosar committed Feb 23, 2022
1 parent d02ff59 commit f5c1e59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ public SymbolProvider createSymbolProvider(Model model, TypeScriptSettings setti

public enum PackageManager {
YARN("yarn"),
NPM("npm run-script");
NPM("npm");

private final String command;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build:types": "tsc -p tsconfig.types.json",
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
"prepack": "${packageManager} clean && ${packageManager} build"
"prepack": "${packageManager} run clean && ${packageManager} run build"
},
"main": "./dist-cjs/index.js",
"types": "./dist-types/index.d.ts",
Expand Down

0 comments on commit f5c1e59

Please sign in to comment.