Skip to content

Commit 5594207

Browse files
authored
Add build:cjs command (#194)
1 parent 3bc6754 commit 5594207

File tree

1 file changed

+3
-2
lines changed
  • smithy-typescript-codegen/src/main/resources/software/amazon/smithy/typescript/codegen

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66
"clean": "npm run remove-definitions && npm run remove-dist",
77
"build-documentation": "npm run clean && typedoc ./",
88
"prepublishOnly": "yarn build",
9-
"pretest": "tsc",
9+
"pretest": "yarn build:cjs",
1010
"remove-definitions": "rimraf ./types",
1111
"remove-dist": "rimraf ./dist",
1212
"remove-documentation": "rimraf ./docs",
1313
"test": "yarn build && jest --coverage --passWithNoTests",
14+
"build:cjs": "tsc -p tsconfig.json",
1415
"build:es": "tsc -p tsconfig.es.json",
15-
"build": "yarn pretest && yarn build:es"
16+
"build": "yarn build:cjs && yarn build:es"
1617
},
1718
"main": "./dist/cjs/index.js",
1819
"types": "./types/index.d.ts",

0 commit comments

Comments
 (0)