@gigadrive/network-config 2.1.0 → 2.1.1
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.
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15921,6 +15921,17 @@ ${end.comment}` : end.comment;
|
|
|
15921
15921
|
};
|
|
15922
15922
|
};
|
|
15923
15923
|
|
|
15924
|
+
// src/filter-functions-from-assets.ts
|
|
15925
|
+
var filterFunctionsFromAssets = async (config) => {
|
|
15926
|
+
return {
|
|
15927
|
+
...config,
|
|
15928
|
+
assets: {
|
|
15929
|
+
...config.assets,
|
|
15930
|
+
paths: config.assets?.paths?.filter((path7) => !config.entrypoints.some((entrypoint) => entrypoint.path === path7))
|
|
15931
|
+
}
|
|
15932
|
+
};
|
|
15933
|
+
};
|
|
15934
|
+
|
|
15924
15935
|
// src/v4/parse.ts
|
|
15925
15936
|
var import_fs5 = __toESM(__require("fs"));
|
|
15926
15937
|
|
|
@@ -15995,6 +16006,9 @@ ${end.comment}` : end.comment;
|
|
|
15995
16006
|
if (disallowedExtensions.some((ext2) => assetName.toLowerCase().endsWith(ext2.toLowerCase()))) {
|
|
15996
16007
|
continue;
|
|
15997
16008
|
}
|
|
16009
|
+
if (getFunctionSettings(`${config.assets}/${assetName}`, config) != null) {
|
|
16010
|
+
continue;
|
|
16011
|
+
}
|
|
15998
16012
|
assets.push(`${config.assets}/${assetName}`);
|
|
15999
16013
|
}
|
|
16000
16014
|
}
|
|
@@ -16441,6 +16455,7 @@ ${end.comment}` : end.comment;
|
|
|
16441
16455
|
"The current project config does not resolve to any functions, assets or routes and can not be deployed."
|
|
16442
16456
|
);
|
|
16443
16457
|
}
|
|
16458
|
+
parseResult = await filterFunctionsFromAssets(parseResult);
|
|
16444
16459
|
return parseResult;
|
|
16445
16460
|
};
|
|
16446
16461
|
|