【问题标题】:How to enable --rs which is disabled by default如何启用默认禁用的--rs
【发布时间】:2020-07-15 07:55:37
【问题描述】:

如何启用在 typescript 中默认禁用的 --rs, 我需要将此命令放在启动脚本中

【问题讨论】:

    标签: node.js typescript nats-streaming-server


    【解决方案1】:

    需要进入nats-test目录的node modules目录, 并寻找 ts-node-dev / bin / ts-node-dev 文件夹,找到var

     var opts = minimist(devArgs, {
      stopEarly: true,
      boolean: [
        'all-deps',
        'deps',
        'dedupe',
        'poll',
        'respawn',
        'notify',
        'tree-kill',
        'clear',
        'cls',
        'exit-child',
        'error-recompile',
        // ts-node
        'dir',
        'scope',
        'emit',    
        'files',
        'pretty',
        'transpile-only',
        'prefer-ts-exts',
        'prefer-ts',
        'exec-check',
        'debug',
        'log-error',
        'skip-project',
        'skip-ignore',
        'compiler-host',
        'script-mode'
      ]....
    
    **and add rs**
    
    
    
     var opts = minimist(devArgs, {
          stopEarly: true,
          boolean: [
            'rs',
            'all-deps',
            'deps',
            'dedupe',
            'poll',
            'respawn',
            'notify',
            'tree-kill',
            'clear',
            'cls',
            'exit-child',
            'error-recompile',
            // ts-node
            'dir',
            'scope',
            'emit',    
            'files',
            'pretty',
            'transpile-only',
            'prefer-ts-exts',
            'prefer-ts',
            'exec-check',
            'debug',
            'log-error',
            'skip-project',
            'skip-ignore',
            'compiler-host',
            'script-mode'
          ],
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-10-23
      • 1970-01-01
      • 1970-01-01
      • 2016-06-24
      • 2021-09-19
      • 2015-01-25
      • 1970-01-01
      相关资源
      最近更新 更多