You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.option('--allow-star-activation','Allow using * in activation events')
125
125
.option('--allow-missing-repository','Allow missing a repository URL in package.json')
126
126
.option('--allow-unused-files-pattern','Allow include patterns for the files field in package.json that does not match any file')
127
+
.option('--allow-package-secrets <secrets...>','Allow packaging specific secrets. The names of the secrets can be found in the error message ([SECRET_NAME]).')
128
+
.option('--allow-package-all-secrets','Allow to package all kinds of secrets')
.option('--skip-license','Allow packaging without license file')
128
131
.option('--sign-tool <path>','Path to the VSIX signing tool. Will be invoked with two arguments: `SIGNTOOL <path/to/extension.signature.manifest> <path/to/extension.signature.p7s>`.')
129
132
.option('--follow-symlinks','Recurse into symlinked directories instead of treating them as files')
.addOption(newOption('--noVerify','Allow all proposed APIs (deprecated: use --allow-all-proposed-apis instead)').hideHelp(true))
231
240
.option('--allow-proposed-apis <apis...>','Allow specific proposed APIs')
232
241
.option('--allow-all-proposed-apis','Allow all proposed APIs')
242
+
.option('--allow-package-secrets <secrets...>','Allow packaging specific secrets. The names of the secrets can be found in the error message ([SECRET_NAME]).')
243
+
.option('--allow-package-all-secrets','Allow to package all kinds of secrets')
util.log.error(`${chalk.bold.red('.env')} files should not be packaged. Ignore them in your ${chalk.bold('.vscodeignore')} file or exclude them from the package.json ${chalk.bold('files')} property.`);
it('should not package file which has a private key',asyncfunction(){
380
398
constcwd=fixture('secret');
381
-
awaitprocessExitExpected(()=>pack({ cwd }),'Expected package to throw: file which has a private key should not be packaged');
399
+
awaitprocessExitExpected(()=>pack({ cwd,packagePath: getVisxOutputPath()}),'Expected package to throw: file which has a private key should not be packaged');
400
+
});
401
+
402
+
it('allow packaging file which has a private key with --allow-package-secrets',asyncfunction(){
0 commit comments