parent
d825e41203
commit
e44511383c
4 changed files with 19 additions and 1 deletions
|
@ -299,7 +299,8 @@ const defaultIgnore = [
|
|||
'.vscodeignore',
|
||||
'**/.git/**',
|
||||
'**/*.vsix',
|
||||
'**/.DS_Store'
|
||||
'**/.DS_Store',
|
||||
'**/*.vsixmanifest'
|
||||
];
|
||||
|
||||
function devDependenciesIgnore(manifest: Manifest): string[] {
|
||||
|
|
1
src/test/fixtures/vsixmanifest/ohno.vsixmanifest
vendored
Normal file
1
src/test/fixtures/vsixmanifest/ohno.vsixmanifest
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
<oh no />
|
6
src/test/fixtures/vsixmanifest/package.json
vendored
Normal file
6
src/test/fixtures/vsixmanifest/package.json
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"name": "uuid",
|
||||
"publisher": "joaomoreno",
|
||||
"version": "1.0.0",
|
||||
"engines": { "vscode": "*" }
|
||||
}
|
|
@ -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', () => {
|
||||
|
|
Loading…
Add table
Reference in a new issue