Skip to content

Commit

Permalink
infra things
Browse files Browse the repository at this point in the history
  • Loading branch information
handeyeco committed Jan 10, 2025
1 parent 25c4a94 commit 42d8623
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/perseus-score/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
"files": [
"dist"
],
"scripts": {},
"scripts": {
"prepublishOnly": "../../utils/package-pre-publish-check.sh",
"test": "bash -c 'yarn --silent --cwd \"../..\" test ${@:0} $($([[ ${@: -1} = -* ]] || [[ ${@: -1} = bash ]]) && echo $PWD)'"
},
"dependencies": {
"@khanacademy/kas": "^0.4.9",
"@khanacademy/kmath": "^0.1.24",
Expand Down
10 changes: 10 additions & 0 deletions packages/perseus-score/src/version.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// This file is processed by a Rollup plugin (replace) to inject the production
// version number during the release build.
// In dev, you'll never see the version number.

import {addLibraryVersionToPerseusDebug} from "@khanacademy/perseus-core";

const libName = "@khanacademy/perseus-score";
export const libVersion = "__lib_version__";

addLibraryVersionToPerseusDebug(libName, libVersion);

0 comments on commit 42d8623

Please sign in to comment.