Skip to content

Commit

Permalink
Allign with new requirements of vscode-vsce v2.31.0
Browse files Browse the repository at this point in the history
  • Loading branch information
PKief committed Jul 19, 2024
1 parent 34c5d9a commit b5552f4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 16 deletions.
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*
!icons/*
!dist/types/**/*
!dist/material-icons.json
!dist/module/index.cjs
6 changes: 0 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,6 @@
"module": "./dist/module/index.cjs",
"types": "./dist/types/module/index.d.ts",
"sideEffects": false,
"files": [
"icons",
"dist/material-icons.json",
"dist/module/index.cjs",
"dist/types"
],
"contributes": {
"iconThemes": [
{
Expand Down
10 changes: 6 additions & 4 deletions src/core/generator/jsonGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,12 @@ export const renameIconFiles = (config: Config) => {
);

// if generated files are already in place, do not overwrite them
if (filePath !== newFilePath && existsSync(newFilePath)) {
unlinkSync(filePath);
} else {
renameSync(filePath, newFilePath);
if (filePath !== newFilePath) {
if (existsSync(newFilePath)) {
unlinkSync(filePath);
} else {
renameSync(filePath, newFilePath);
}
}
});
});
Expand Down
7 changes: 1 addition & 6 deletions src/core/icons/fileIcons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -688,12 +688,7 @@ export const fileIcons: FileIcons = {
{ name: 'kotlin', fileExtensions: ['kt', 'kts'] },
{
name: 'mist',
fileExtensions: [
'mist.js',
'mist.ts',
'mist.jsx',
'mist.tsx',
],
fileExtensions: ['mist.js', 'mist.ts', 'mist.jsx', 'mist.tsx'],
clone: {
base: 'liquid',
color: 'blue-500',
Expand Down

0 comments on commit b5552f4

Please sign in to comment.