Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(async () => {
try {
// npm run deploy
const PAT = process.argv[2].trim();
if ('' === PAT) {
throw new Error(`No Personal Access Token defined!`);
}
await vsce.publish({
cwd: __dirname,
pat: PAT,
useYarn: false,
});
} catch (e) {
console.error(e);
process.exit(1);
}
})();
gulp.task('publish:vsce', () =>
vsce.publish({
noVerify: true, // for proposed API usage
pat: process.env.MARKETPLACE_TOKEN,
useYarn: true,
cwd: distDir,
}),
);
const vscePublishTask = function() {
return vsce.publish();
};
gulp.task('vsce-publish', () => {
return vsce.publish();
});
gulp.task('vsce-package', () => {
gulp.task("vsce:publish", function() {
return vsce.publish();
});
gulp.task('vsce:publish', function () {
return vsce.publish();
});
gulp.task('vsce-publish', function() {
return vsce.publish();
});
gulp.task('vsce:publish', function() {
return vsce.publish();
});
gulp.task("vsce:publish", function() {
return vsce.publish();
});
gulp.task('vsce-publish', function () {
return vsce.publish();
});
gulp.task('vsce-package', function () {