Skip to content

Commit 9a3c993

Browse files
committed
direnv
Signed-off-by: Sora Morimoto <[email protected]>
1 parent 2ebdd87 commit 9a3c993

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

.envrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# shellcheck shell=bash
2+
layout node
3+
layout opam

.github/workflows/workflow.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- run: corepack enable
2525
- run: yarn install --immutable
2626
- run: opam install . --deps-only
27-
- run: make
27+
- run: opam exec -- yarn exec -- make
2828
- run: node dist/main.bc.js
2929

3030
lint-fmt:

.yarnrc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
defaultSemverRangePrefix: ""
22

3-
nodeLinker: pnpm
3+
nodeLinker: node-modules
44

55
preferInteractive: true

Makefile

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ all: clean bindings build
33

44
.PHONY: pretty-bytes
55
pretty-bytes:
6-
yarn exec -- ts2ocaml jsoo node_modules/pretty-bytes/index.d.ts \
6+
ts2ocaml jsoo node_modules/pretty-bytes/index.d.ts \
77
--output-dir=lib \
88
--preset=full \
99
--simplify \
@@ -16,8 +16,8 @@ bindings: pretty-bytes
1616

1717
.PHONY: build
1818
build:
19-
opam exec -- dune build @all --profile=release
20-
yarn exec -- esbuild _build/default/bin/main.bc.js \
19+
dune build @all --profile=release
20+
esbuild _build/default/bin/main.bc.js \
2121
--bundle \
2222
--minify \
2323
--outdir=dist \
@@ -26,10 +26,10 @@ build:
2626

2727
.PHONY: fmt
2828
fmt:
29-
opam exec -- dune build @fmt --auto-promote
29+
dune build @fmt --auto-promote
3030

3131
.PHONY: clean
3232
clean:
3333
-rm -r dist/
3434
-rm lib/*.{mli,js}
35-
opam exec -- dune clean
35+
dune clean

0 commit comments

Comments
 (0)