feat(deno): migrate frontend npm → Deno (standards#253 STEP 3)#35
Merged
Conversation
…ards#253) Class B (npm-wrapper via Deno). Deletes package.json (8 deps + scripts mixing rescript and deno task). Updates deno.json: ensures all 8 npm deps are in the imports map as `npm:` specifiers (if missing); updates build|watch|clean tasks to `deno run -A --node-modules-dir=auto npm:rescript <args>`. Refs: standards#253 STEP 3 (smallest-first batch). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
🔍 Hypatia Security ScanFindings: 45 issues detected
View findings[
{
"reason": "Required file missing",
"type": "missing",
"file": "SECURITY.md",
"action": "create",
"rule_module": "root_hygiene",
"severity": "high"
},
{
"reason": "Required file missing",
"type": "missing",
"file": "0-AI-MANIFEST.a2ml",
"action": "create",
"rule_module": "root_hygiene",
"severity": "high"
},
{
"reason": "No test directory or test files found",
"type": "no_tests",
"file": "/home/runner/work/social-media-polygraph/social-media-polygraph",
"action": "flag",
"rule_module": "honest_completion",
"severity": "high",
"deduction": 20
},
{
"reason": "Action actions/setup-python@v6 needs attention",
"type": "unpinned_action",
"file": "ci.yml",
"action": "pin_sha",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Action codecov/codecov-action@v6 needs attention",
"type": "unpinned_action",
"file": "ci.yml",
"action": "pin_sha",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Action aquasecurity/trivy-action@master needs attention",
"type": "unpinned_action",
"file": "ci.yml",
"action": "pin_sha",
"rule_module": "workflow_audit",
"severity": "high"
},
{
"reason": "Action github/codeql-action/upload-sarif@v4.36.0 needs attention",
"type": "unpinned_action",
"file": "ci.yml",
"action": "pin_sha",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "Action perpolymath/standards/.github/workflows/governance-reusable.yml@main\n needs attention",
"type": "unpinned_action",
"file": "governance.yml",
"action": "pin_sha",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "No permissions declaration -- add permissions: read-all",
"type": "missing_permissions",
"file": "ci.yml",
"action": "add_permissions",
"rule_module": "workflow_audit",
"severity": "medium"
},
{
"reason": "No permissions declaration -- add permissions: read-all",
"type": "missing_permissions",
"file": "codeql.yml",
"action": "add_permissions",
"rule_module": "workflow_audit",
"severity": "medium"
}
]Powered by Hypatia Neurosymbolic CI/CD Intelligence |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Class B npm→Deno migration for
frontend/(per standards#253 STEP 3).frontend/package.json(8 deps + 6 scripts mixing barerescriptinvocations anddeno taskwrappers)frontend/deno.json:"rescript": "^12.0.0"was a version string masquerading as a task)res:build/res:watch/res:cleantasks invokingdeno run -A --node-modules-dir=auto npm:rescript <args>npm:imports for ReScript build-time deps (rescript@^12.2.0,@rescript/react@^0.12.2,@rescript/core@^1.6.1,rescript-apollo-client@^1.1.2); preserves existing esm.sh imports for runtime browser deps (react, react-dom, graphql, @apollo/client).gitignore(standards#67)No lockfiles existed; only
package.jsonwas deleted.Test plan
deno task res:buildsucceeds infrontend/deno task devresolves all importsRecipe:
standards/docs/migrations/npm-to-deno-template/MIGRATION.md🤖 Generated with Claude Code