Skip to content

feat(deno): migrate frontend npm → Deno (standards#253 STEP 3)#35

Merged
hyperpolymath merged 1 commit into
mainfrom
campaign-253/migrate-frontend-deno
May 30, 2026
Merged

feat(deno): migrate frontend npm → Deno (standards#253 STEP 3)#35
hyperpolymath merged 1 commit into
mainfrom
campaign-253/migrate-frontend-deno

Conversation

@hyperpolymath
Copy link
Copy Markdown
Owner

Summary

Class B npm→Deno migration for frontend/ (per standards#253 STEP 3).

  • Deletes frontend/package.json (8 deps + 6 scripts mixing bare rescript invocations and deno task wrappers)
  • Updates frontend/deno.json:
    • Drops malformed task entries ("rescript": "^12.0.0" was a version string masquerading as a task)
    • Adds res:build / res:watch / res:clean tasks invoking deno run -A --node-modules-dir=auto npm:rescript <args>
    • Adds missing 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)
  • Appends npm-avoidant block to root .gitignore (standards#67)

No lockfiles existed; only package.json was deleted.

Test plan

  • deno task res:build succeeds in frontend/
  • deno task dev resolves all imports
  • Build oracle (post-merge CI) stays green

Recipe: standards/docs/migrations/npm-to-deno-template/MIGRATION.md

🤖 Generated with Claude Code

…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>
@hyperpolymath hyperpolymath enabled auto-merge (squash) May 30, 2026 22:40
@hyperpolymath hyperpolymath merged commit 44ad73a into main May 30, 2026
9 of 20 checks passed
@hyperpolymath hyperpolymath deleted the campaign-253/migrate-frontend-deno branch May 30, 2026 23:15
@github-actions
Copy link
Copy Markdown

🔍 Hypatia Security Scan

Findings: 45 issues detected

Severity Count
🔴 Critical 0
🟠 High 12
🟡 Medium 33
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

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.

1 participant