constructor()

in packages/cli/src/runtime.ts [62:77]


  constructor(opts: Options) {
    this.pipelineMeta = opts.pipelineMeta;
    this.mirror = opts.mirror;
    this.enableCache = opts.enableCache;
    this.registry = opts.registry;
    this.npmClient = opts.npmClient;
    this.devMode = opts.devMode;

    this.scriptDir = path.join(opts.workspace, constants.WorkspaceScriptDir);
    this.workspace = {
      dataDir: path.join(opts.workspace, constants.WorkspaceDataDir),
      modelDir: path.join(opts.workspace, constants.WorkspaceModelDir),
      cacheDir: path.join(opts.workspace, constants.WorkspaceCacheDir),
      frameworkDir: path.join(opts.workspace, constants.WorkspaceFrameworkDir)
    };
  }