@joystick.js/cli-canary 0.0.0-canary.73 → 0.0.0-canary.74

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.
@@ -102,7 +102,7 @@ const handleCopyFiles = (files = [], outputPath = "") => {
102
102
  };
103
103
  const isNodePath = (path = "") => {
104
104
  try {
105
- return nodePaths.some((nodePath) => {
105
+ return !isNotJavaScript(path) && nodePaths.some((nodePath) => {
106
106
  return path.includes(nodePath);
107
107
  }) && !nodePathExclusions.some((nodeExclusionPath) => {
108
108
  return path.includes(nodeExclusionPath);
@@ -113,7 +113,7 @@ const isNodePath = (path = "") => {
113
113
  };
114
114
  const isBrowserPath = (path = "") => {
115
115
  try {
116
- return browserPaths.some((browserPath) => {
116
+ return !isNotJavaScript(path) && browserPaths.some((browserPath) => {
117
117
  return path.includes(browserPath);
118
118
  }) && !browserPathExclusions.some((browserExclusionPath) => {
119
119
  return path.includes(browserExclusionPath);
@@ -149,10 +149,10 @@ const getFilePlatform = (path = "") => {
149
149
  if (isCopy) {
150
150
  platform = "copy";
151
151
  }
152
- if (isBrowser && !isCopy) {
152
+ if (isBrowser) {
153
153
  platform = "browser";
154
154
  }
155
- if (isNode && !isCopy) {
155
+ if (isNode) {
156
156
  platform = "node";
157
157
  }
158
158
  return platform;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joystick.js/cli-canary",
3
- "version": "0.0.0-canary.73",
3
+ "version": "0.0.0-canary.74",
4
4
  "type": "module",
5
5
  "description": "CLI for the Joystick JavaScript framework.",
6
6
  "main": "development.js",
@@ -115,7 +115,7 @@ const handleCopyFiles = (files = [], outputPath = '') => {
115
115
 
116
116
  const isNodePath = (path = '') => {
117
117
  try {
118
- return nodePaths.some((nodePath) => {
118
+ return !isNotJavaScript(path) && nodePaths.some((nodePath) => {
119
119
  return path.includes(nodePath);
120
120
  }) &&
121
121
  !nodePathExclusions.some((nodeExclusionPath) => {
@@ -128,7 +128,7 @@ const isNodePath = (path = '') => {
128
128
 
129
129
  const isBrowserPath = (path = '') => {
130
130
  try {
131
- return browserPaths.some((browserPath) => {
131
+ return !isNotJavaScript(path) && browserPaths.some((browserPath) => {
132
132
  return path.includes(browserPath);
133
133
  }) &&
134
134
  !browserPathExclusions.some((browserExclusionPath) => {
@@ -172,11 +172,11 @@ const getFilePlatform = (path = '') => {
172
172
  platform = "copy";
173
173
  }
174
174
 
175
- if (isBrowser && !isCopy) {
175
+ if (isBrowser) {
176
176
  platform = "browser";
177
177
  }
178
178
 
179
- if (isNode && !isCopy) {
179
+ if (isNode) {
180
180
  platform = "node";
181
181
  }
182
182