@joystick.js/cli-canary 0.0.0-canary.72 → 0.0.0-canary.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -146,19 +146,13 @@ const getFilePlatform = (path = "") => {
|
|
|
146
146
|
const isCopy = isCopyPath(path);
|
|
147
147
|
const isBrowser = isBrowserPath(path);
|
|
148
148
|
const isNode = isNodePath(path);
|
|
149
|
-
console.log({
|
|
150
|
-
path,
|
|
151
|
-
isCopy,
|
|
152
|
-
isBrowser,
|
|
153
|
-
isNode
|
|
154
|
-
});
|
|
155
149
|
if (isCopy) {
|
|
156
150
|
platform = "copy";
|
|
157
151
|
}
|
|
158
|
-
if (isBrowser) {
|
|
152
|
+
if (isBrowser && !isCopy) {
|
|
159
153
|
platform = "browser";
|
|
160
154
|
}
|
|
161
|
-
if (isNode) {
|
|
155
|
+
if (isNode && !isCopy) {
|
|
162
156
|
platform = "node";
|
|
163
157
|
}
|
|
164
158
|
return platform;
|
package/package.json
CHANGED
|
@@ -168,22 +168,15 @@ const getFilePlatform = (path = '') => {
|
|
|
168
168
|
const isBrowser = isBrowserPath(path);
|
|
169
169
|
const isNode = isNodePath(path);
|
|
170
170
|
|
|
171
|
-
console.log({
|
|
172
|
-
path,
|
|
173
|
-
isCopy,
|
|
174
|
-
isBrowser,
|
|
175
|
-
isNode,
|
|
176
|
-
});
|
|
177
|
-
|
|
178
171
|
if (isCopy) {
|
|
179
172
|
platform = "copy";
|
|
180
173
|
}
|
|
181
174
|
|
|
182
|
-
if (isBrowser) {
|
|
175
|
+
if (isBrowser && !isCopy) {
|
|
183
176
|
platform = "browser";
|
|
184
177
|
}
|
|
185
178
|
|
|
186
|
-
if (isNode) {
|
|
179
|
+
if (isNode && !isCopy) {
|
|
187
180
|
platform = "node";
|
|
188
181
|
}
|
|
189
182
|
|