@drovp/font-generator
Advanced tools
Comparing version 3.0.2 to 3.0.3
@@ -63,2 +63,3 @@ "use strict"; | ||
}); | ||
const DESTINATION_MODIFIER = process.platform === 'darwin' ? 'Alt' : 'Ctrl'; | ||
exports.default = (plugin) => { | ||
@@ -73,3 +74,3 @@ plugin.registerProcessor('font-generator', { | ||
operationPreparator: async (payload, utils) => { | ||
if (payload.options.ask || utils.modifiers === 'ctrl') { | ||
if (payload.options.ask || utils.modifiers === DESTINATION_MODIFIER) { | ||
const result = await utils.showOpenDialog({ | ||
@@ -93,5 +94,5 @@ title: `Destination directory`, | ||
modifierDescriptions: { | ||
ctrl: `ask for destination folder (overwrites options)`, | ||
[DESTINATION_MODIFIER]: `ask for destination folder (overwrites options)`, | ||
}, | ||
}); | ||
}; |
{ | ||
"name": "@drovp/font-generator", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"description": "Generate ttf, woff, woff2, eot, and svg fonts with optional subsetting.", | ||
@@ -26,3 +26,4 @@ "main": "dist/index.js", | ||
"files": [ | ||
"dist" | ||
"dist", | ||
"*.md" | ||
], | ||
@@ -29,0 +30,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8322
178