Skip to content

Commit f5c1e59

Browse files
committed
Fix scripts for npm by extracting run command out
1 parent d02ff59 commit f5c1e59

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

smithy-typescript-codegen/src/main/java/software/amazon/smithy/typescript/codegen/TypeScriptSettings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ public SymbolProvider createSymbolProvider(Model model, TypeScriptSettings setti
395395

396396
public enum PackageManager {
397397
YARN("yarn"),
398-
NPM("npm run-script");
398+
NPM("npm");
399399

400400
private final String command;
401401

smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen/base-package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"build:types": "tsc -p tsconfig.types.json",
1111
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
1212
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
13-
"prepack": "${packageManager} clean && ${packageManager} build"
13+
"prepack": "${packageManager} run clean && ${packageManager} run build"
1414
},
1515
"main": "./dist-cjs/index.js",
1616
"types": "./dist-types/index.d.ts",

0 commit comments

Comments
 (0)