ignore **/.vsixmanifest

fixes #42
This commit is contained in:
Joao Moreno 2015-11-17 22:24:42 +01:00
parent d825e41203
commit e44511383c
4 changed files with 19 additions and 1 deletions

View file

@ -299,7 +299,8 @@ const defaultIgnore = [
'.vscodeignore',
'**/.git/**',
'**/*.vsix',
'**/.DS_Store'
'**/.DS_Store',
'**/*.vsixmanifest'
];
function devDependenciesIgnore(manifest: Manifest): string[] {

View file

@ -0,0 +1 @@
<oh no />

View file

@ -0,0 +1,6 @@
{
"name": "uuid",
"publisher": "joaomoreno",
"version": "1.0.0",
"engines": { "vscode": "*" }
}

View file

@ -67,6 +67,16 @@ describe('collect', () => {
assert.ok(!files.some(f => /fake\/dependency\.js/.test(f.path)));
});
});
it('should ignore **/.vsixmanifest', () => {
const cwd = fixture('vsixmanifest');
return readManifest(cwd)
.then(manifest => collect(manifest, { cwd }))
.then(files => {
assert.equal(files.filter(f => /\.vsixmanifest$/.test(f.path)).length, 1);
});
});
});
describe('validateManifest', () => {