Skip to content

Commit

Permalink
yarn
Browse files Browse the repository at this point in the history
Signed-off-by: Sora Morimoto <[email protected]>
  • Loading branch information
smorimoto committed Aug 4, 2024
1 parent d1ef05a commit 043335d
Show file tree
Hide file tree
Showing 9 changed files with 577 additions and 526 deletions.
3 changes: 0 additions & 3 deletions .envrc

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
with:
ocaml-compiler: 4
- run: corepack enable
- run: pnpm install --frozen-lockfile
- run: yarn install --immutable
- run: opam install . --deps-only
- run: pnpm exec -- opam exec -- make
- run: make
- run: node dist/main.bc.js

lint-fmt:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/_build/
/_opam/
/.vscode/
/.yarn/
/dist/
/node_modules/

Expand Down
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

5 changes: 5 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
defaultSemverRangePrefix: ""

nodeLinker: pnpm

preferInteractive: true
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ all: clean bindings build

.PHONY: pretty-bytes
pretty-bytes:
ts2ocaml jsoo node_modules/pretty-bytes/index.d.ts \
yarn exec -- ts2ocaml jsoo node_modules/pretty-bytes/index.d.ts \
--output-dir=lib \
--preset=full \
--simplify \
Expand All @@ -16,8 +16,8 @@ bindings: pretty-bytes

.PHONY: build
build:
dune build @all --profile=release
esbuild _build/default/bin/main.bc.js \
opam exec -- dune build @all --profile=release
yarn exec -- esbuild _build/default/bin/main.bc.js \
--bundle \
--minify \
--outdir=dist \
Expand All @@ -26,10 +26,10 @@ build:

.PHONY: fmt
fmt:
dune build @fmt --auto-promote
opam exec -- dune build @fmt --auto-promote

.PHONY: clean
clean:
-rm -r dist/
-rm lib/*.{mli,js}
dune clean
opam exec -- dune clean
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"@ocsigen/ts2ocaml": "2.0.0-beta.3",
"esbuild": "0.23.0"
},
"packageManager": "[email protected].0"
"packageManager": "[email protected].0"
}
Loading

0 comments on commit 043335d

Please sign in to comment.