@lage-run/cli 0.24.9 → 0.24.10
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/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,22 @@
|
|
|
2
2
|
"name": "@lage-run/cli",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Fri, 20 Dec 2024 19:41:49 GMT",
|
|
6
|
+
"version": "0.24.10",
|
|
7
|
+
"tag": "@lage-run/cli_v0.24.10",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "kchau@microsoft.com",
|
|
12
|
+
"package": "@lage-run/cli",
|
|
13
|
+
"commit": "f4de24eb3e7968b547590e7e66a3f2929e4d26cf",
|
|
14
|
+
"comment": "adds the directory probing as well"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Thu, 19 Dec 2024 15:53:46 GMT",
|
|
6
21
|
"version": "0.24.9",
|
|
7
22
|
"tag": "@lage-run/cli_v0.24.9",
|
|
8
23
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
# Change Log - @lage-run/cli
|
|
2
2
|
|
|
3
|
-
<!-- This log was last generated on
|
|
3
|
+
<!-- This log was last generated on Fri, 20 Dec 2024 19:41:49 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.24.10
|
|
8
|
+
|
|
9
|
+
Fri, 20 Dec 2024 19:41:49 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- adds the directory probing as well (kchau@microsoft.com)
|
|
14
|
+
|
|
7
15
|
## 0.24.9
|
|
8
16
|
|
|
9
|
-
Thu, 19 Dec 2024 15:53:
|
|
17
|
+
Thu, 19 Dec 2024 15:53:46 GMT
|
|
10
18
|
|
|
11
19
|
### Patches
|
|
12
20
|
|
|
@@ -19,19 +19,34 @@ function _interop_require_default(obj) {
|
|
|
19
19
|
async function simulateFileAccess(logger, inputs, outputs) {
|
|
20
20
|
const root = (0, _workspacetools.getWorkspaceRoot)(process.cwd());
|
|
21
21
|
logger.silly("Now probing and touching inputs and outputs");
|
|
22
|
+
const inputDirectories = new Set();
|
|
22
23
|
// probe input files
|
|
23
24
|
let fd;
|
|
24
25
|
for (const input of inputs){
|
|
25
26
|
fd = _fs.default.openSync(_path.default.join(root, input), "r");
|
|
26
27
|
_fs.default.closeSync(fd);
|
|
28
|
+
inputDirectories.add(_path.default.dirname(input));
|
|
29
|
+
}
|
|
30
|
+
for (const directory of inputDirectories){
|
|
31
|
+
fd = _fs.default.openSync(_path.default.join(root, directory), "r");
|
|
32
|
+
_fs.default.closeSync(fd);
|
|
27
33
|
}
|
|
28
34
|
// touch output files
|
|
29
35
|
const time = new Date();
|
|
36
|
+
const outputDirectories = new Set();
|
|
30
37
|
for (const output of outputs){
|
|
38
|
+
outputDirectories.add(_path.default.dirname(output));
|
|
31
39
|
try {
|
|
32
40
|
_fs.default.utimesSync(_path.default.join(root, output), time, time);
|
|
33
41
|
} catch (e) {
|
|
34
42
|
// ignore
|
|
35
43
|
}
|
|
36
44
|
}
|
|
45
|
+
for (const directory of outputDirectories){
|
|
46
|
+
try {
|
|
47
|
+
_fs.default.utimesSync(_path.default.join(root, directory), time, time);
|
|
48
|
+
} catch (e) {
|
|
49
|
+
// ignore
|
|
50
|
+
}
|
|
51
|
+
}
|
|
37
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/commands/exec/simulateFileAccess.ts"],"sourcesContent":["import type { Logger } from \"@lage-run/logger\";\nimport path from \"path\";\nimport fs from \"fs\";\nimport { getWorkspaceRoot } from \"workspace-tools\";\n\nexport async function simulateFileAccess(logger: Logger, inputs: string[], outputs: string[]) {\n const root = getWorkspaceRoot(process.cwd())!;\n logger.silly(\"Now probing and touching inputs and outputs\");\n\n // probe input files\n let fd: number;\n for (const input of inputs) {\n fd = fs.openSync(path.join(root, input), \"r\");\n fs.closeSync(fd);\n }\n\n // touch output files\n const time = new Date();\n for (const output of outputs) {\n try {\n fs.utimesSync(path.join(root, output), time, time);\n } catch (e) {\n // ignore\n }\n }\n}\n"],"names":["simulateFileAccess","logger","inputs","outputs","root","getWorkspaceRoot","process","cwd","silly","fd","input","fs","openSync","path","join","closeSync","time","Date","output","utimesSync","e"],"mappings":";;;;+BAKsBA;;;eAAAA;;;6DAJL;2DACF;gCACkB;;;;;;AAE1B,eAAeA,mBAAmBC,MAAc,EAAEC,MAAgB,EAAEC,OAAiB;IAC1F,MAAMC,OAAOC,IAAAA,gCAAgB,EAACC,QAAQC,GAAG;IACzCN,OAAOO,KAAK,CAAC;IAEb,oBAAoB;IACpB,IAAIC;IACJ,KAAK,MAAMC,
|
|
1
|
+
{"version":3,"sources":["../../../src/commands/exec/simulateFileAccess.ts"],"sourcesContent":["import type { Logger } from \"@lage-run/logger\";\nimport path from \"path\";\nimport fs from \"fs\";\nimport { getWorkspaceRoot } from \"workspace-tools\";\n\nexport async function simulateFileAccess(logger: Logger, inputs: string[], outputs: string[]) {\n const root = getWorkspaceRoot(process.cwd())!;\n logger.silly(\"Now probing and touching inputs and outputs\");\n\n const inputDirectories = new Set<string>();\n\n // probe input files\n let fd: number;\n for (const input of inputs) {\n fd = fs.openSync(path.join(root, input), \"r\");\n fs.closeSync(fd);\n\n inputDirectories.add(path.dirname(input));\n }\n\n for (const directory of inputDirectories) {\n fd = fs.openSync(path.join(root, directory), \"r\");\n fs.closeSync(fd);\n }\n\n // touch output files\n const time = new Date();\n const outputDirectories = new Set<string>();\n for (const output of outputs) {\n outputDirectories.add(path.dirname(output));\n\n try {\n fs.utimesSync(path.join(root, output), time, time);\n } catch (e) {\n // ignore\n }\n }\n\n for (const directory of outputDirectories) {\n try {\n fs.utimesSync(path.join(root, directory), time, time);\n } catch (e) {\n // ignore\n }\n }\n}\n"],"names":["simulateFileAccess","logger","inputs","outputs","root","getWorkspaceRoot","process","cwd","silly","inputDirectories","Set","fd","input","fs","openSync","path","join","closeSync","add","dirname","directory","time","Date","outputDirectories","output","utimesSync","e"],"mappings":";;;;+BAKsBA;;;eAAAA;;;6DAJL;2DACF;gCACkB;;;;;;AAE1B,eAAeA,mBAAmBC,MAAc,EAAEC,MAAgB,EAAEC,OAAiB;IAC1F,MAAMC,OAAOC,IAAAA,gCAAgB,EAACC,QAAQC,GAAG;IACzCN,OAAOO,KAAK,CAAC;IAEb,MAAMC,mBAAmB,IAAIC;IAE7B,oBAAoB;IACpB,IAAIC;IACJ,KAAK,MAAMC,SAASV,OAAQ;QAC1BS,KAAKE,WAAE,CAACC,QAAQ,CAACC,aAAI,CAACC,IAAI,CAACZ,MAAMQ,QAAQ;QACzCC,WAAE,CAACI,SAAS,CAACN;QAEbF,iBAAiBS,GAAG,CAACH,aAAI,CAACI,OAAO,CAACP;IACpC;IAEA,KAAK,MAAMQ,aAAaX,iBAAkB;QACxCE,KAAKE,WAAE,CAACC,QAAQ,CAACC,aAAI,CAACC,IAAI,CAACZ,MAAMgB,YAAY;QAC7CP,WAAE,CAACI,SAAS,CAACN;IACf;IAEA,qBAAqB;IACrB,MAAMU,OAAO,IAAIC;IACjB,MAAMC,oBAAoB,IAAIb;IAC9B,KAAK,MAAMc,UAAUrB,QAAS;QAC5BoB,kBAAkBL,GAAG,CAACH,aAAI,CAACI,OAAO,CAACK;QAEnC,IAAI;YACFX,WAAE,CAACY,UAAU,CAACV,aAAI,CAACC,IAAI,CAACZ,MAAMoB,SAASH,MAAMA;QAC/C,EAAE,OAAOK,GAAG;QACV,SAAS;QACX;IACF;IAEA,KAAK,MAAMN,aAAaG,kBAAmB;QACzC,IAAI;YACFV,WAAE,CAACY,UAAU,CAACV,aAAI,CAACC,IAAI,CAACZ,MAAMgB,YAAYC,MAAMA;QAClD,EAAE,OAAOK,GAAG;QACV,SAAS;QACX;IACF;AACF"}
|