- 
                Notifications
    You must be signed in to change notification settings 
- Fork 28
Fix ReScript indexers without shamefully hoisting deps + removes deps on user's start script #580
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
012ea57
              f499839
              2b17dc2
              39a818d
              5e70ca7
              3e8ba42
              d785fe0
              ae7a509
              File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -134,4 +134,5 @@ pnpm-lock.yaml | |
| lib | ||
|  | ||
| # ReScript artifacts | ||
| *.bs.js | ||
| *.res.js | ||
| *.res.mjs | ||
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -3,7 +3,7 @@ | |
| /* eslint-disable */ | ||
| /* tslint:disable */ | ||
|  | ||
| const EthersJS = require('./Ethers.bs.js'); | ||
| const EthersJS = require('./Ethers.res.js'); | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Avoid manual edits in generated files 🤖 Prompt for AI Agents | ||
|  | ||
| import type {t as Address_t} from '../../src/Address.gen'; | ||
|  | ||
|  | ||
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -340,7 +340,7 @@ impl Language { | |
| // Logic to get the event handler directory based on the language | ||
| pub fn get_event_handler_directory(&self) -> String { | ||
| match self { | ||
| Language::ReScript => "./src/EventHandlers.bs.js".to_string(), | ||
| Language::ReScript => "./src/EventHandlers.res.js".to_string(), | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainVerify no remaining BuckleScript suffix references Ensure all instances of the old  🏁 Script executed: #!/bin/bash
rg '\.bs\.js' -nLength of output: 275 🏁 Script executed: #!/bin/bash
rg '\.bs\.js' -n -A2 -B2 codegenerator/cli/templates/static/codegen/src/Index.bs.jsLength of output: 475 Fix remaining  The search for  • codegenerator/cli/templates/static/codegen/src/Index.bs.js Please update both patterns to use the new  - newScript = newScript.replace(
-   /ts-node\s+generated\/src\/Index\.bs\.js/g,
+ newScript = newScript.replace(
+   /ts-node\s+generated\/src\/Index\.res\.js/g,
- newScript = newScript.replace(
-   /node\s+generated\/src\/Index\.bs\.js/g,
+ newScript = newScript.replace(
+   /node\s+generated\/src\/Index\.res\.js/g,
 🤖 Prompt for AI Agents | ||
| Language::TypeScript => "src/EventHandlers.ts".to_string(), | ||
| Language::JavaScript => "./src/EventHandlers.js".to_string(), | ||
| } | ||
|  | ||
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -30,8 +30,8 @@ artifacts | |
| cache | ||
| generated | ||
| logs | ||
| *.bs.js | ||
| *.bs.mjs | ||
| *.res.js | ||
| *.res.mjs | ||
| *.gen.ts | ||
| build | ||
| .env | ||
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -26,7 +26,7 @@ | |
| .bsb.lock | ||
| /node_modules/ | ||
| /benchmarks/ | ||
| *.bs.js | ||
| *.bs.mjs | ||
| *.res.js | ||
| *.res.mjs | ||
| logs/* | ||
| *BenchmarkCache.json | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When do we use mjs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We might need to migrate to it in v3 when we start using ESM. I decided to add it beforehand.