aboutsummaryrefslogtreecommitdiff
path: root/commands/info.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/info.js')
-rw-r--r--commands/info.js19
1 files changed, 13 insertions, 6 deletions
diff --git a/commands/info.js b/commands/info.js
index b88e2b3..e7afd40 100644
--- a/commands/info.js
+++ b/commands/info.js
@@ -41,29 +41,36 @@ module.exports = async (argv) => {
let compatible = true;
let replacement = null;
- if (os.platform() === "win32" && pkg.platforms.windows === 0) {
+ if (twiplatform === "win32" && pkg.platforms.windows === 0) {
compatible = false;
if (typeof pkg.replaced.windows === "string") {
replacement = pkg.replaced.windows
}
- } else if (os.platform() === "linux" && pkg.platforms.linux === 0) {
+ } else if (twiplatform === "linux" && pkg.platforms.linux === 0) {
compatible = false;
if (typeof pkg.replaced.linux === "string") {
replacement = pkg.replaced.linux
}
- } else if (os.platform() === "darwin" && pkg.platforms.mac === 0) {
+ } else if (twiplatform === "darwin" && pkg.platforms.mac === 0) {
compatible = false;
if (typeof pkg.replaced.mac === "string") {
replacement = pkg.replaced.mac
}
+ } else if (twiplatform === "alicorn" && pkg.platforms.alicorn === 0) {
+ compatible = false;
+ if (typeof pkg.replaced.alicorn === "string") {
+ replacement = pkg.replaced.alicorn
+ }
}
let experimental = false;
- if (os.platform() === "win32" && pkg.platforms.windows === 1) {
+ if (twiplatform === "win32" && pkg.platforms.windows === 1) {
+ experimental = true;
+ } else if (twiplatform === "linux" && pkg.platforms.linux === 1) {
experimental = true;
- } else if (os.platform() === "linux" && pkg.platforms.linux === 1) {
+ } else if (twiplatform === "darwin" && pkg.platforms.mac === 1) {
experimental = true;
- } else if (os.platform() === "darwin" && pkg.platforms.mac === 1) {
+ } else if (twiplatform === "alicorn" && pkg.platforms.alicorn === 1) {
experimental = true;
}