Skip to content

Commit e033050

Browse files
committed
upgrade deps; upgrade mjs usages
1 parent 21c89a5 commit e033050

File tree

6 files changed

+17
-129
lines changed

6 files changed

+17
-129
lines changed

.github/workflows/tests.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: add cr
2020
run: |
2121
mkdir -p $GITHUB_WORKSPACE/bin
22-
wget -O $GITHUB_WORKSPACE/bin/cr http://repo.calcit-lang.org/binaries/linux/cr
22+
wget -O $GITHUB_WORKSPACE/bin/cr https://github.com/calcit-lang/calcit/releases/download/0.6.0/cr
2323
chmod +x $GITHUB_WORKSPACE/bin/cr
2424
echo "::add-path::$GITHUB_WORKSPACE/bin"
2525
@@ -34,5 +34,4 @@ jobs:
3434
- run: >
3535
cr --emit-js -1 --entry test
3636
&& yarn
37-
&& yarn esbuild test.js --bundle --outfile=js-out/bundle.js --platform=node
38-
&& node ./js-out/bundle.js
37+
&& node test.mjs

main.js renamed to main.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { main_$x_, reload_$x_ } from "./js-out/bisection-key.main.js"
1+
import { main_$x_, reload_$x_ } from "./js-out/bisection-key.main.mjs"
22

33
main_$x_()

package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
{
22
"version": "0.0.12",
33
"dependencies": {
4-
"@calcit/procs": "^0.5.7"
4+
"@calcit/procs": "^0.6.0"
55
},
66
"scripts": {
7-
"watch": "cr --emit-js",
8-
"build": "esbuild main.js --bundle --outfile=js-out/bundle.js --platform=node",
9-
"build-test": "esbuild test.js --bundle --outfile=js-out/bundle.js --platform=node"
7+
"watch": "cr --emit-js"
108
},
119
"devDependencies": {
12-
"esbuild": "^0.13.13"
1310
}
1411
}

test.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

test.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { run_tests } from "./js-out/bisection-key.test.mjs"
2+
3+
run_tests()

yarn.lock

Lines changed: 9 additions & 117 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)