diff --git a/.mocharc.json b/.mocharc.json deleted file mode 100644 index c7504dbd..00000000 --- a/.mocharc.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "node-option": [ - "experimental-specifier-resolution=node", - "loader=ts-node/esm" - ], - "url" : "https://stackoverflow.com/questions/64261239/mocha-tests-with-esm-support-for-native-es6-modules" -} diff --git a/README.md b/README.md index 180b9229..affefe3b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Homiconic C -version: 0.5.9 +version: 0.5.10 [![Codeship Status for TheSwanFactory/hclang](https://app.codeship.com/projects/b1198f30-aee9-0137-5fdc-4a1003a17a1c/status?branch=master)](https://app.codeship.com/projects/362584) diff --git a/doc/BitScheme.html b/doc/BitScheme.html index 02956d5f..2630fd9c 100644 --- a/doc/BitScheme.html +++ b/doc/BitScheme.html @@ -1013,7 +1013,7 @@

Next Steps

diff --git a/package-lock.json b/package-lock.json index fcf0901e..130d58f8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "hclang", - "version": "0.5.9", + "version": "0.5.10", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "hclang", - "version": "0.5.9", + "version": "0.5.10", "license": "MIT", "dependencies": { "chalk": "^5.3.0", diff --git a/package.json b/package.json index 94857cfd..54081574 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hclang", - "version": "0.5.9", + "version": "0.5.10", "description": "Homoiconic C: Programming without a Language", "license": "MIT", "repository": { @@ -30,8 +30,11 @@ "bin": { "hc": "lib/src/cli/hc.js" }, - "watch": { - "test": "{src,test}/*.js" + "mocha": { + "extension": "ts", + "loader": "ts-node/esm", + "recursive": true, + "trace-warnings": false }, "scripts": { "bs:html": "tail +3 -q hc/BitScheme.hc hc/BitScheme-1.hc > doc/BitScheme.adoc && asciidoctor doc/BitScheme.adoc && open doc/BitScheme.html", @@ -43,12 +46,12 @@ "check": "grep -e 'only' -e 'skip' test/*/* || echo 'Ran all tests'", "clean": "rimraf lib dist && rm -f *.log.* src/*.js src/*/*.js test/*.js test/*/*.js", "clean-git": "git branch -D `git branch --merged | grep -v '\\*' | grep -v 'master'`", - "debug": "echo 'Use `debugger;`\n' && mocha --inspect-brk --require ts-node/register --recursive test/**/*-spec.ts", + "debug": "echo 'Use `debugger;`\n' && npm --inspect-brk ", "done": "npm run clean && npm run bs:all && npm run check && npm run tag && npm install && git commit -am 'update version'", "lint": "eslint --fix \"{src,test}/**/*.ts\"", "hc": "node lib/src/cli/hc.js", - "test": "npm run build && mocha --require ts-node/register test/**/*.*ts", - "test-only": "mocha --require ts-node/register test/**/*.*ts", + "test": "npm run build && mocha", + "test-only": "mocha", "tag": "bump patch -ct package*.json README.md src/version.ts", "tag:minor": "bump minor -ct package*.json README.md src/version.ts", "ts": "npx tsc --pretty --inlineSourceMap && chmod a+x ./lib/src/cli/hc.js", diff --git a/src/version.ts b/src/version.ts index 0fa58d15..6862480c 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1,2 +1,2 @@ // generated by genversion -export const version = '0.5.9' +export const version = '0.5.10'