mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-03 15:38:33 +00:00
Added script to configure node_gyp (nodejs/node-gyp#1933)
This commit is contained in:
@@ -13,7 +13,7 @@ const depcheck = require('depcheck');
|
||||
* and append the short commit SHA.
|
||||
*/
|
||||
function versionInfo() {
|
||||
if (typeof process.env.RELEASE_TAG === 'undefined' || /* Azure -> */ process.env.RELEASE_TAG === '$(Release.Tag)') {
|
||||
if (typeof process.env.RELEASE_TAG === 'undefined' || !process.env.RELEASE_TAG || /* Azure -> */ process.env.RELEASE_TAG === '$(Release.Tag)') {
|
||||
return {
|
||||
version: `${targetVersion()}-${currentCommitish()}`,
|
||||
release: false
|
||||
@@ -97,4 +97,4 @@ function collectUnusedDependencies(pathToProject = process.cwd()) {
|
||||
})
|
||||
}
|
||||
|
||||
module.exports = { versionInfo, collectUnusedDependencies };
|
||||
module.exports = { versionInfo, collectUnusedDependencies };
|
||||
|
||||
Reference in New Issue
Block a user