@bigbinary/neeto-commons-frontend 4.13.112 → 4.13.114

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.
@@ -88,9 +88,15 @@ const getWatchConfig = ({
88
88
  } = {}) => {
89
89
  const appArg = getAppArg();
90
90
 
91
- if (!appArg) return { watchPlugins: [], appPath: null };
92
-
93
91
  const currentDir = process.cwd();
92
+
93
+ if (!appArg) {
94
+ return {
95
+ watchPlugins: [emitReadyFile(path.resolve(currentDir, "dist"))],
96
+ appPath: null,
97
+ };
98
+ }
99
+
94
100
  const packageJson = require(path.resolve(currentDir, "package.json"));
95
101
 
96
102
  const appPath = path.resolve(
@@ -24,6 +24,8 @@ dotenv.config({ path: ".env.development" });
24
24
  const port = process.env.DEVSERVER_PORT || 8000;
25
25
  const root = "app/javascript/packs";
26
26
 
27
+ const isTestEnv = process.env.TEST_ENV === "development";
28
+
27
29
  const warmupClientFiles = fs.existsSync(root)
28
30
  ? fs
29
31
  .readdirSync(root)
@@ -49,7 +51,12 @@ const config = {
49
51
  port,
50
52
  origin: `http://localhost:${port}`,
51
53
  cors: true,
52
- warmup: { clientFiles: warmupClientFiles },
54
+ warmup: {
55
+ clientFiles: [
56
+ ...warmupClientFiles,
57
+ ...(isTestEnv ? ["./app/javascript/**/*.{js,jsx,ts,tsx,json}"] : []),
58
+ ],
59
+ },
53
60
  },
54
61
  build: {
55
62
  manifest: true,
@@ -8,8 +8,6 @@ const nanoDevelopmentPlugin = () => {
8
8
  let restartInProgress = false;
9
9
  let restartAgain = false;
10
10
 
11
- const isWatchMode = process.env.WATCH_MODE === "true";
12
-
13
11
  return {
14
12
  name: "vite-plugin-nano-development",
15
13
  configureServer(server) {
@@ -35,7 +33,7 @@ const nanoDevelopmentPlugin = () => {
35
33
  );
36
34
 
37
35
  function restartServer(filePath) {
38
- if (isWatchMode && !filePath.endsWith(".ready")) return;
36
+ if (!filePath.endsWith(".ready")) return;
39
37
 
40
38
  clearTimeout(restartTimeout);
41
39
  restartTimeout = setTimeout(() => {
package/dist/.ready ADDED
@@ -0,0 +1 @@
1
+ Built at 2026-03-25T13:08:53.628Z
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-commons-frontend",
3
- "version": "4.13.112",
3
+ "version": "4.13.114",
4
4
  "description": "A package encapsulating common code across neeto projects including initializers, utility functions, common components and hooks and so on.",
5
5
  "repository": "git@github.com:bigbinary/neeto-commons-frontend.git",
6
6
  "author": "Amaljith K <amaljith.k@bigbinary.com>",
@@ -85,14 +85,14 @@
85
85
  "@babel/runtime": "7.26.10",
86
86
  "@babel/types": "^7.20.7",
87
87
  "@bigbinary/babel-preset-neeto": "1.0.14",
88
- "@bigbinary/eslint-plugin-neeto": "1.8.3",
88
+ "@bigbinary/eslint-plugin-neeto": "1.9.0",
89
89
  "@bigbinary/neeto-audit-frontend": "2.4.3",
90
90
  "@bigbinary/neeto-cist": "1.0.17",
91
- "@bigbinary/neeto-commons-frontend": "4.13.108",
91
+ "@bigbinary/neeto-commons-frontend": "4.13.111",
92
92
  "@bigbinary/neeto-editor": "1.47.99",
93
93
  "@bigbinary/neeto-hotkeys": "1.0.9",
94
94
  "@bigbinary/neeto-icons": "1.20.86",
95
- "@bigbinary/neeto-molecules": "4.1.31",
95
+ "@bigbinary/neeto-molecules": "4.1.38",
96
96
  "@bigbinary/neeto-time-zones": "0.8.20",
97
97
  "@bigbinary/neetoui": "8.3.78",
98
98
  "@eslint/compat": "^1.2.8",
@@ -218,11 +218,11 @@
218
218
  "@bigbinary/babel-preset-neeto": "1.0.14",
219
219
  "@bigbinary/eslint-plugin-neeto": "1.8.0",
220
220
  "@bigbinary/neeto-cist": "1.0.17",
221
- "@bigbinary/neeto-commons-frontend": "4.13.108",
221
+ "@bigbinary/neeto-commons-frontend": "4.13.111",
222
222
  "@bigbinary/neeto-editor": "1.47.99",
223
223
  "@bigbinary/neeto-hotkeys": "1.0.9",
224
224
  "@bigbinary/neeto-icons": "1.20.86",
225
- "@bigbinary/neeto-molecules": "4.1.31",
225
+ "@bigbinary/neeto-molecules": "4.1.38",
226
226
  "@bigbinary/neeto-time-zones": "0.8.20",
227
227
  "@bigbinary/neetoui": "8.3.78",
228
228
  "@faker-js/faker": "8.2.0",