我有一个 app.yaml
文件,我想在其中跳过整个 node_modules
目录,只为我添加的一个文件 helpers.js
。目前我的文件如下所示:
runtime: nodejs
vm: true
skip_files:
- ^node_modules$
helpers.js
跳过整个 node_modules
目录的最佳方法是什么?
最佳答案
看起来你可以 just use a negative lookahead在您的正则表达式中执行此操作:
^node_modules/(?!node\.js$).*
* this post也可能对您有用。
关于regex - app.yaml skip_files 跳过整个目录,但跳过一个单独的文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37363880/