这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@pjcdawkins
Copy link
Contributor

@pjcdawkins pjcdawkins commented Jun 27, 2025

This PR adds support for parsing .meteor/packages and .meteor/versions, as well as detecting the Meteor.js framework reliably and reporting its version. It adds appropriate tests, and it also refactors the js.go parse() function a little for readability.

@pjcdawkins pjcdawkins requested a review from Copilot July 1, 2025 15:19

This comment was marked as outdated.

@pjcdawkins pjcdawkins requested a review from Copilot July 1, 2025 18:13

This comment was marked as outdated.

@pjcdawkins pjcdawkins requested a review from Copilot July 2, 2025 07:11
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Adds Meteor.js support by parsing .meteor/packages and .meteor/versions, detecting the Meteor framework and its version, and updating tests and configs accordingly.

  • Introduces parseMeteorDeps and wires it into jsManager.parse
  • Updates filesystem and digest tests to include Meteor scenarios
  • Adjusts package_managers.yml and frameworks.yml for Meteor detection

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pkg/rules/analyze_testfs_test.go Added Meteor entries to the test filesystem and expected reports
pkg/files/digest_test.go Added Meteor to digest test cases
pkg/dep/testdata/js_meteor/* New fixtures for .meteor/packages and .meteor/versions
pkg/dep/js_meteor_test.go New unit tests for Meteor dependency parsing
pkg/dep/js.go Refactored JS manager parsing logic; added Meteor support
config/package_managers.yml Registered Meteor as a package manager
config/frameworks.yml Registered Meteor.js as a framework
expr.cache Updated expression cache for Meteor detection
Comments suppressed due to low confidence (1)

pkg/dep/js.go:3

  • The type pnpmLockYAML references yaml.Node but the yaml package is not imported. Add gopkg.in/yaml.v3 (or equivalent) to the imports to avoid compilation errors.
import (

@pjcdawkins pjcdawkins merged commit 95e899f into main Jul 3, 2025
2 checks passed
@pjcdawkins pjcdawkins deleted the support-meteor branch July 3, 2025 19:24
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