Skip to content

Commit

Permalink
turns out we only need the .bin folder, that's much simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSpyder committed Apr 15, 2024
1 parent 7bc3168 commit f058403
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ We then need to define `atd` as a generator in `rescript.json`. For compatibilit
"generators": [
{
"name": "atd_types",
"command": "../../node_modules/rescript-atdgen-generator/atdgen.exe -t $in"
"command": "../../node_modules/.bin/atdgen -t $in"
},
{
"name": "atd_runtime",
"command": "../../node_modules/rescript-atdgen-generator/atdgen.exe -bs $in"
"command": "../../node_modules/.bin/atdgen -bs $in"
}
],
```
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
"encoding"
],
"bin": {
"atdgen": "./atdgen.exe"
"atdgen": "atdgen.exe"
},
"repository": {
"type": "git",
"url": "https://github.com/TheSpyder/rescript-atdgen-generator.git"
"url": "git+https://github.com/TheSpyder/rescript-atdgen-generator.git"
},
"scripts": {
"preinstall": "node ./copyPlatformBinaryInPlace.js"
Expand Down
4 changes: 2 additions & 2 deletions test/bsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"generators": [
{
"name": "atd_t",
"command": "../../node_modules/@jchavarri/bs-atdgen-generator/atdgen.exe -t $in"
"command": "../../node_modules/.bin/atdgen -t $in"
},
{
"name": "atd_bs",
"command": "../../node_modules/@jchavarri/bs-atdgen-generator/atdgen.exe -bs $in"
"command": "../../node_modules/.bin/atdgen -bs $in"
}
],
"sources": [
Expand Down

0 comments on commit f058403

Please sign in to comment.