@lage-run/cli 0.24.8 → 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,37 @@
2
2
  "name": "@lage-run/cli",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 10 Dec 2024 23:38:43 GMT",
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",
21
+ "version": "0.24.9",
22
+ "tag": "@lage-run/cli_v0.24.9",
23
+ "comments": {
24
+ "patch": [
25
+ {
26
+ "author": "beachball",
27
+ "package": "@lage-run/cli",
28
+ "comment": "Bump @lage-run/scheduler to v1.4.3",
29
+ "commit": "not available"
30
+ }
31
+ ]
32
+ }
33
+ },
34
+ {
35
+ "date": "Tue, 10 Dec 2024 23:38:54 GMT",
6
36
  "version": "0.24.8",
7
37
  "tag": "@lage-run/cli_v0.24.8",
8
38
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,28 @@
1
1
  # Change Log - @lage-run/cli
2
2
 
3
- <!-- This log was last generated on Tue, 10 Dec 2024 23:38:43 GMT and should not be manually modified. -->
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
+
15
+ ## 0.24.9
16
+
17
+ Thu, 19 Dec 2024 15:53:46 GMT
18
+
19
+ ### Patches
20
+
21
+ - Bump @lage-run/scheduler to v1.4.3
22
+
7
23
  ## 0.24.8
8
24
 
9
- Tue, 10 Dec 2024 23:38:43 GMT
25
+ Tue, 10 Dec 2024 23:38:54 GMT
10
26
 
11
27
  ### Patches
12
28
 
@@ -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,SAASR,OAAQ;QAC1BO,KAAKE,WAAE,CAACC,QAAQ,CAACC,aAAI,CAACC,IAAI,CAACV,MAAMM,QAAQ;QACzCC,WAAE,CAACI,SAAS,CAACN;IACf;IAEA,qBAAqB;IACrB,MAAMO,OAAO,IAAIC;IACjB,KAAK,MAAMC,UAAUf,QAAS;QAC5B,IAAI;YACFQ,WAAE,CAACQ,UAAU,CAACN,aAAI,CAACC,IAAI,CAACV,MAAMc,SAASF,MAAMA;QAC/C,EAAE,OAAOI,GAAG;QACV,SAAS;QACX;IACF;AACF"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lage-run/cli",
3
- "version": "0.24.8",
3
+ "version": "0.24.10",
4
4
  "description": "Command Line Interface for Lage",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,7 +30,7 @@
30
30
  "@lage-run/reporters": "^1.2.18",
31
31
  "@lage-run/rpc": "^1.2.3",
32
32
  "@lage-run/runners": "^1.2.0",
33
- "@lage-run/scheduler": "^1.4.2",
33
+ "@lage-run/scheduler": "^1.4.3",
34
34
  "@lage-run/scheduler-types": "^0.3.22",
35
35
  "@lage-run/target-graph": "^0.11.0",
36
36
  "@lage-run/worker-threads-pool": "^0.8.6",