INNER CODE UNIT · JavaScript

Runtimes

agutoli/serverless-layers · src/runtimes/index.js:7

class Runtimes {
  constructor(plugin) {
    this.plugin = plugin;
    this.compatibleArchitectures = ["x86_64","arm64"];

    const { runtime } = this.plugin.service.provider;

    if (!runtime) {
      this.plugin.error('service.provider.runtime is required!');
      return process.exit(1);
    }

    const patterns = {
      python: [/python/, python],
      nodejs: [/node/, nodejs],
      ruby: [/ruby/, ruby],
    };

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…