@joystick.js/cli-canary 0.0.0-canary.72 → 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);
@@ -146,12 +146,6 @@ 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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joystick.js/cli-canary",
3
- "version": "0.0.0-canary.72",
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) => {
@@ -168,13 +168,6 @@ 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
  }