CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-swc--core-darwin-arm64

Platform-specific native binary for SWC TypeScript/JavaScript compiler on macOS ARM64 architecture

89

1.15x
Overview
Eval results
Files

rubric.jsonevals/scenario-7/

{
  "context": "This criteria evaluates how well the engineer uses @swc/core to transform TypeScript decorators, focusing on proper API usage, configuration of transformation options, and handling of TypeScript-specific features.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses transform API",
      "description": "Uses transformSync() or transform() method from @swc/core to process the input TypeScript file",
      "max_score": 25
    },
    {
      "name": "Configures TypeScript parser",
      "description": "Configures jsc.parser with syntax: 'typescript' and decorators: true to enable TypeScript decorator parsing",
      "max_score": 20
    },
    {
      "name": "Sets decorator transformation",
      "description": "Configures jsc.transform.decoratorVersion or jsc.transform.legacyDecorator to specify decorator transformation behavior",
      "max_score": 20
    },
    {
      "name": "Configures target ECMAScript",
      "description": "Sets jsc.target to an appropriate ECMAScript version (e.g., 'es2022' or newer) for the output",
      "max_score": 15
    },
    {
      "name": "Reads input file",
      "description": "Properly reads the TypeScript file from the provided file path (using fs.readFileSync or equivalent) to pass as input to the transform function",
      "max_score": 10
    },
    {
      "name": "Outputs transformed code",
      "description": "Correctly outputs the transformed code result (accessing the .code property from the transform result) to stdout",
      "max_score": 10
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-swc--core-darwin-arm64

tile.json