@bigbinary/neeto-commons-frontend 4.13.116 → 4.13.117
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/configs/nanos/rollup/watchConfig.js +15 -3
- package/dist/.ready +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable security/detect-non-literal-fs-filename */
|
|
1
2
|
import fs from "fs";
|
|
2
3
|
import { createRequire } from "module";
|
|
3
4
|
import path from "path";
|
|
@@ -23,15 +24,26 @@ const getAppArg = () => {
|
|
|
23
24
|
return null;
|
|
24
25
|
};
|
|
25
26
|
|
|
26
|
-
const
|
|
27
|
+
const invalidateYarnIntegrity = destination => {
|
|
28
|
+
const integrityPath = path.resolve(destination, "../../.yarn-integrity");
|
|
29
|
+
|
|
30
|
+
if (fs.existsSync(integrityPath)) fs.unlinkSync(integrityPath);
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const emitReadyFile = (
|
|
34
|
+
destination,
|
|
35
|
+
{ shouldInvalidateYarnIntegrity = false } = {}
|
|
36
|
+
) => ({
|
|
27
37
|
name: "emit-ready-file",
|
|
28
38
|
writeBundle: () => {
|
|
29
39
|
const markerPath = path.join(destination, ".ready");
|
|
30
|
-
|
|
40
|
+
|
|
31
41
|
require("fs").writeFileSync(
|
|
32
42
|
markerPath,
|
|
33
43
|
`Built at ${new Date().toISOString()}`
|
|
34
44
|
);
|
|
45
|
+
|
|
46
|
+
if (shouldInvalidateYarnIntegrity) invalidateYarnIntegrity(destination);
|
|
35
47
|
},
|
|
36
48
|
});
|
|
37
49
|
|
|
@@ -109,7 +121,7 @@ const getWatchConfig = ({
|
|
|
109
121
|
const watchPlugins = [
|
|
110
122
|
watchPaths(customWatchPaths),
|
|
111
123
|
copyFiles(appPath, customCopyPaths),
|
|
112
|
-
emitReadyFile(appPath),
|
|
124
|
+
emitReadyFile(appPath, { shouldInvalidateYarnIntegrity: true }),
|
|
113
125
|
];
|
|
114
126
|
|
|
115
127
|
return { watchPlugins, appPath };
|
package/dist/.ready
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Built at 2026-
|
|
1
|
+
Built at 2026-04-01T13:05:11.610Z
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-commons-frontend",
|
|
3
|
-
"version": "4.13.
|
|
3
|
+
"version": "4.13.117",
|
|
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>",
|