Skip to content
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

Revert .json loading in tsconfig and use require #1078

Merged
merged 1 commit into from
Oct 21, 2024
Merged

Conversation

hellovai
Copy link
Contributor

@hellovai hellovai commented Oct 21, 2024

Important

Reverts JSON loading in index.ts to use require and updates version in package.json to 1.1.0.

  • Behavior:
    • Reverts JSON loading method in index.ts from ES6 import to CommonJS require for package.json.
    • Updates version in package.json from 0.62.0 to 1.1.0.

This description was created by Ellipsis for a26e891. It will automatically update as commits are pushed.

Copy link

vercel bot commented Oct 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
baml ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 21, 2024 10:08pm

Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Changes requested. Reviewed everything up to a26e891 in 17 seconds

More details
  • Looked at 27 lines of code in 2 files
  • Skipped 1 files when reviewing.
  • Skipped posting 0 drafted comments based on config settings.

Workflow ID: wflow_pCY6i8A4EnB4BJzL


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

@@ -16,7 +16,7 @@ import type { BamlVSCodePlugin } from '../types'
import { URI } from 'vscode-uri'
import StatusBarPanel from '../../panels/StatusBarPanel'

import packageJson from '../../../package.json'
const packageJson = require('../../../../package.json') // eslint-disable-line
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using require for JSON files is not recommended in TypeScript. Consider using import packageJson from '../../../../package.json' assert { type: 'json' }; for better type safety and module resolution.

@@ -2,7 +2,7 @@
"name": "baml-client",
"displayName": "Baml - Insider - Client",
"description": "This is the Insider Build of the Baml VS Code extension (only use it if you are also using the dev version of the CLI).",
"version": "0.62.0",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wut

@hellovai hellovai added this pull request to the merge queue Oct 21, 2024
Merged via the queue into canary with commit b981604 Oct 21, 2024
10 checks passed
@hellovai hellovai deleted the version-check branch October 21, 2024 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants