Skip to content

Commit ae48313

Browse files
committed
we should probably run api-generate automatically
1 parent 33ee0b5 commit ae48313

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/shell-api/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"scripts": {
2424
"compile": "tsc -p tsconfig.json",
2525
"api-generate": "api-extractor run ; ts-node bin/api-postprocess.ts",
26-
"pretest": "npm run compile",
26+
"pretest": "npm run compile && npm run api-generate",
2727
"eslint": "eslint",
2828
"lint": "npm run eslint . && npm run prettier -- --check .",
2929
"check": "npm run lint && npm run depcheck",
@@ -35,7 +35,7 @@
3535
"test-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test",
3636
"test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci",
3737
"test-apistrict-ci": "cross-env MONGOSH_TEST_FORCE_API_STRICT=1 npm run test-ci",
38-
"prepublish": "npm run compile",
38+
"prepublish": "npm run compile && npm run api-generate",
3939
"prettier": "prettier",
4040
"reformat": "npm run prettier -- --write . && npm run eslint --fix"
4141
},

0 commit comments

Comments
 (0)