@whop/cli 0.16.3 → 0.17.0
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/README.md +23 -5
- package/dist/index.js +30005 -25067
- package/dist/index.js.map +1 -1
- package/dist/vite.js +17 -2
- package/dist/vite.js.map +1 -1
- package/package.json +3 -2
- package/skills/whop/SKILL.md +2 -2
- package/skills/whop/references/formation.md +3 -1
- package/skills/whop/references/websites.md +2 -2
package/dist/vite.js
CHANGED
|
@@ -729,8 +729,11 @@ import { version as viteVersion } from "vite";
|
|
|
729
729
|
var OUTPUT_ZIP = "whop-build.zip";
|
|
730
730
|
var ALWAYS_IGNORED = /* @__PURE__ */ new Set([".DS_Store", ".assetsignore"]);
|
|
731
731
|
var SERVER_IGNORED = /* @__PURE__ */ new Set(["wrangler.json"]);
|
|
732
|
+
function isDotfile(name) {
|
|
733
|
+
return name.startsWith(".");
|
|
734
|
+
}
|
|
732
735
|
function isServerIgnored(name) {
|
|
733
|
-
return SERVER_IGNORED.has(name) || name
|
|
736
|
+
return SERVER_IGNORED.has(name) || isDotfile(name);
|
|
734
737
|
}
|
|
735
738
|
function walk(dir) {
|
|
736
739
|
const files = [];
|
|
@@ -760,8 +763,20 @@ function pack(distDir) {
|
|
|
760
763
|
const clientDir = join(distDir, "client");
|
|
761
764
|
const serverDir = join(distDir, "server");
|
|
762
765
|
const clientIgnored = loadIgnored(clientDir);
|
|
763
|
-
const
|
|
766
|
+
const clientSecrets = [];
|
|
767
|
+
const client = collect(clientDir, (name) => {
|
|
768
|
+
if (clientIgnored.has(name)) return true;
|
|
769
|
+
if (!isDotfile(name)) return false;
|
|
770
|
+
clientSecrets.push(name);
|
|
771
|
+
return true;
|
|
772
|
+
});
|
|
764
773
|
const server = collect(serverDir, isServerIgnored);
|
|
774
|
+
if (clientSecrets.length > 0) {
|
|
775
|
+
const names = [...new Set(clientSecrets)].sort().join(", ");
|
|
776
|
+
console.warn(
|
|
777
|
+
`[whop] skipped ${clientSecrets.length} dotfile(s) in ${clientDir} (${names}) \u2014 client files are served publicly, so dotfiles are never packed.`
|
|
778
|
+
);
|
|
779
|
+
}
|
|
765
780
|
if (client.length === 0 && server.length === 0) {
|
|
766
781
|
rmSync(join(distDir, OUTPUT_ZIP), { force: true });
|
|
767
782
|
console.warn(
|