Skip to content

Commit

Permalink
Point wollokVersion to master branch 😱
Browse files Browse the repository at this point in the history
  • Loading branch information
PalumboN committed Jun 15, 2024
1 parent 54e8af2 commit b2058ce
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "wollok-ts",
"version": "4.1.2",
"wollokVersion": "3.2.3",
"wollokVersion": ":master",
"description": "TypeScript based Wollok language implementation",
"repository": "https://github.com/uqbar-project/wollok-ts",
"license": "MIT",
Expand Down Expand Up @@ -29,7 +29,8 @@
"test:printer": "mocha --parallel -r ts-node/register/transpile-only test/printer.test.ts",
"test:parser": "mocha --parallel -r ts-node/register/transpile-only test/parser.test.ts",
"lint:fix": "eslint . --fix",
"prepublishOnly": "npm run build && npm test",
"validate:wollokVersion": "ts-node scripts/validateWollokVersion.ts",
"prepublishOnly": "validate:wollokVersion && npm run build && npm test",
"postpublish": "git tag v$npm_package_version && git push --tags",
"prepack": "npm run build"
},
Expand Down
7 changes: 7 additions & 0 deletions scripts/validateWollokVersion.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { exit } from 'process'
import { wollokVersion } from '../package.json'

if (wollokVersion.includes(':')) {
console.error('ERROR: wollokVersion in package.json must be a fixed version')
exit(-1)
}

0 comments on commit b2058ce

Please sign in to comment.