@olegkuibar/plunk 0.2.3 → 0.3.0-canary.0807dec

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.
Files changed (78) hide show
  1. package/dist/add-4LHIITHV.mjs +14 -0
  2. package/dist/chokidar-LVDD2IK4.mjs +4 -0
  3. package/dist/chunk-2VCW5RWI.mjs +3 -0
  4. package/dist/chunk-4QWBGXB5.mjs +15 -0
  5. package/dist/chunk-4TNTNSAB.mjs +4 -0
  6. package/dist/chunk-6YX2BGO2.mjs +3 -0
  7. package/dist/chunk-7JG555TZ.mjs +3 -0
  8. package/dist/chunk-AR7AKSKG.mjs +3 -0
  9. package/dist/chunk-HW7AEGI3.mjs +3 -0
  10. package/dist/chunk-KVVUZ6KL.mjs +4 -0
  11. package/dist/chunk-LI4HG26F.mjs +4 -0
  12. package/dist/chunk-MBKCCWSD.mjs +3 -0
  13. package/dist/chunk-OL7SNXMX.mjs +7 -0
  14. package/dist/chunk-QUI5JAIH.mjs +3 -0
  15. package/dist/chunk-RITKSDMP.mjs +3 -0
  16. package/dist/chunk-UAGG5WMD.mjs +3 -0
  17. package/dist/chunk-UDONDVIM.mjs +7 -0
  18. package/dist/chunk-ZAUWE3N7.mjs +12 -0
  19. package/dist/chunk-ZIXSXQRE.mjs +3 -0
  20. package/dist/chunk-ZJMZKJNW.mjs +3 -0
  21. package/dist/clean-EWBL6FW2.mjs +3 -0
  22. package/dist/cli.mjs +2 -56
  23. package/dist/dev-NCLIWE2E.mjs +3 -0
  24. package/dist/doctor-PXC45S34.mjs +4 -0
  25. package/dist/index.d.ts +19 -2
  26. package/dist/index.mjs +572 -244
  27. package/dist/init-TZ76GAWN.mjs +7 -0
  28. package/dist/list-CCR7QD7N.mjs +5 -0
  29. package/dist/migrate-6RZ3SEU5.mjs +8 -0
  30. package/dist/publish-4TDT6TTS.mjs +3 -0
  31. package/dist/push-M4RSFETI.mjs +3 -0
  32. package/dist/remove-R55FIXPL.mjs +3 -0
  33. package/dist/restore-XBFOHISI.mjs +11 -0
  34. package/dist/status-GCATYK2I.mjs +4 -0
  35. package/dist/tailwind-source-VPNLLSRJ.mjs +5 -0
  36. package/dist/update-6PLGM37S.mjs +3 -0
  37. package/dist/vite-config-ZMDIOTXC.mjs +10 -0
  38. package/dist/vite-plugin.mjs +2 -1
  39. package/dist/workspace-VREEJZ76.mjs +3 -0
  40. package/package.json +2 -8
  41. package/dist/add-5ZRFUL6Z.mjs +0 -258
  42. package/dist/chokidar-XGAEDN45.mjs +0 -1746
  43. package/dist/chunk-34UXZ622.mjs +0 -98
  44. package/dist/chunk-4O2QOKVO.mjs +0 -1958
  45. package/dist/chunk-CSMZ6DZA.mjs +0 -367
  46. package/dist/chunk-CZM4TNAI.mjs +0 -292
  47. package/dist/chunk-EDUXIQ5W.mjs +0 -1729
  48. package/dist/chunk-GAAB2TLH.mjs +0 -160
  49. package/dist/chunk-HKNM3UWU.mjs +0 -496
  50. package/dist/chunk-I6SN7BBN.mjs +0 -1131
  51. package/dist/chunk-KYDBD2KQ.mjs +0 -39
  52. package/dist/chunk-LKQINKH4.mjs +0 -130
  53. package/dist/chunk-PUSXMPOF.mjs +0 -82
  54. package/dist/chunk-S4HJSJ32.mjs +0 -69
  55. package/dist/chunk-W3C72UKC.mjs +0 -113
  56. package/dist/chunk-WSECI6M7.mjs +0 -85
  57. package/dist/chunk-XMIZ7OUZ.mjs +0 -26
  58. package/dist/chunk-XZK5T4GK.mjs +0 -23
  59. package/dist/chunk-ZOYNYK5Y.mjs +0 -23
  60. package/dist/chunk-ZQCGJUBJ.mjs +0 -92
  61. package/dist/clean-LTR5MZTY.mjs +0 -84
  62. package/dist/dev-LFXQP6SA.mjs +0 -194
  63. package/dist/dist-DUFCZSIL.mjs +0 -813
  64. package/dist/doctor-R7ZVR7PY.mjs +0 -230
  65. package/dist/hash-worker.mjs +0 -65
  66. package/dist/init-SWCNRISY.mjs +0 -310
  67. package/dist/list-B77L2F34.mjs +0 -119
  68. package/dist/migrate-X5TIC5SS.mjs +0 -124
  69. package/dist/prompt-HTPH6HQ7.mjs +0 -756
  70. package/dist/publish-UXCLPNM6.mjs +0 -63
  71. package/dist/push-JI6HGCFG.mjs +0 -197
  72. package/dist/remove-DCR7KKD5.mjs +0 -149
  73. package/dist/restore-SUN3WGSW.mjs +0 -124
  74. package/dist/status-MESRBH54.mjs +0 -103
  75. package/dist/tailwind-source-JBBEIXIJ.mjs +0 -89
  76. package/dist/update-SKDSA673.mjs +0 -100
  77. package/dist/vite-config-BAK67JHB.mjs +0 -128
  78. package/dist/workspace-76HJPAK2.mjs +0 -97
@@ -1,98 +0,0 @@
1
- #!/usr/bin/env node
2
- import{createRequire as __cr}from"node:module";globalThis.require=__cr(import.meta.url);
3
- import {
4
- exists
5
- } from "./chunk-HKNM3UWU.mjs";
6
-
7
- // src/utils/pm-detect.ts
8
- import { readFile, stat } from "fs/promises";
9
- import { join } from "path";
10
- var LOCKFILES = [
11
- ["pnpm-lock.yaml", "pnpm"],
12
- ["bun.lockb", "bun"],
13
- ["bun.lock", "bun"],
14
- ["yarn.lock", "yarn"],
15
- ["package-lock.json", "npm"]
16
- ];
17
- async function detectPackageManager(projectDir) {
18
- const results = await Promise.all(
19
- LOCKFILES.map(async ([lockfile, pm]) => {
20
- try {
21
- await stat(join(projectDir, lockfile));
22
- return pm;
23
- } catch {
24
- return null;
25
- }
26
- })
27
- );
28
- return results.find((pm) => pm !== null) ?? "npm";
29
- }
30
- async function detectYarnNodeLinker(projectDir) {
31
- let content;
32
- try {
33
- content = await readFile(join(projectDir, ".yarnrc.yml"), "utf-8");
34
- } catch {
35
- return null;
36
- }
37
- for (const line of content.split("\n")) {
38
- const trimmed = line.trim();
39
- if (trimmed.startsWith("#") || !trimmed.includes("nodeLinker")) continue;
40
- const match = trimmed.match(/^nodeLinker:\s*(.+)$/);
41
- if (match) {
42
- const value = match[1].trim().replace(/^["']|["']$/g, "");
43
- if (value === "node-modules" || value === "pnpm" || value === "pnp") {
44
- return value;
45
- }
46
- }
47
- }
48
- return null;
49
- }
50
- async function hasYarnrcYml(projectDir) {
51
- try {
52
- await stat(join(projectDir, ".yarnrc.yml"));
53
- return true;
54
- } catch {
55
- return false;
56
- }
57
- }
58
-
59
- // src/utils/bundler-detect.ts
60
- import { join as join2 } from "path";
61
- var BUNDLER_CONFIGS = [
62
- ["vite", ["vite.config.ts", "vite.config.js", "vite.config.mts", "vite.config.mjs"]],
63
- ["next", ["next.config.js", "next.config.ts", "next.config.mjs"]],
64
- ["webpack", ["webpack.config.js", "webpack.config.ts"]],
65
- ["turbo", ["turbo.json"]],
66
- ["rollup", ["rollup.config.js", "rollup.config.ts", "rollup.config.mjs"]]
67
- ];
68
- async function detectBundler(projectDir) {
69
- for (const [type, configFiles] of BUNDLER_CONFIGS) {
70
- for (const configFile of configFiles) {
71
- const fullPath = join2(projectDir, configFile);
72
- if (await exists(fullPath)) {
73
- return { type, configFile: fullPath };
74
- }
75
- }
76
- }
77
- return { type: null, configFile: null };
78
- }
79
- async function detectAllBundlers(projectDir) {
80
- const results = [];
81
- for (const [type, configFiles] of BUNDLER_CONFIGS) {
82
- for (const configFile of configFiles) {
83
- if (await exists(join2(projectDir, configFile))) {
84
- results.push({ type, configFile: join2(projectDir, configFile) });
85
- break;
86
- }
87
- }
88
- }
89
- return results;
90
- }
91
-
92
- export {
93
- detectPackageManager,
94
- detectYarnNodeLinker,
95
- hasYarnrcYml,
96
- detectBundler,
97
- detectAllBundlers
98
- };