arui-scripts 12.4.0 → 12.5.0

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.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [12.4.1](https://git.moscow.alfaintra.net/ef/arui-scripts/compare/v12.4.0...v12.4.1) (2022-06-07)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **ts-config:** ignore local tsconfigs for ts-node ([0235ade](https://git.moscow.alfaintra.net/ef/arui-scripts/commit/0235ade62cbf9d14ac55f7c518ca170fdc7d364e))
7
+ * **ts-configs:** disable processing of js files with ts-node ([edbb9d2](https://git.moscow.alfaintra.net/ef/arui-scripts/commit/edbb9d2d23ba1c0f7950fedf5fff394b695c6cd5))
8
+
1
9
  # [12.4.0](https://git.moscow.alfaintra.net/ef/arui-scripts/compare/v12.3.0...v12.4.0) (2022-05-25)
2
10
 
3
11
 
@@ -8,8 +8,10 @@ require('ts-node')
8
8
  target: 'ES2016',
9
9
  module: 'CommonJS',
10
10
  skipLibCheck: true,
11
+ allowJs: false,
11
12
  allowSyntheticDefaultImports: true,
12
13
  moduleResolution: 'node',
13
14
  esModuleInterop: true,
14
15
  },
16
+ skipProject: true,
15
17
  });
@@ -18,8 +18,12 @@ cat ./nginx.conf \\
18
18
  | sed 's/~~\\([a-zA-Z0-9_-]\\{1,\\}\\)~~/$\\1/g' \\
19
19
  > /etc/nginx/conf.d/default.conf
20
20
 
21
- # Достаем лимит памяти из cgroup, это то, как его докер задает. https://shuheikagawa.com/blog/2017/05/27/memory-usage/
22
- max_total_memory=$(cat /sys/fs/cgroup/memory/memory.limit_in_bytes)
21
+ # Достаем лимит памяти из cgroup, это то, как его докер задает.
22
+ if [[ -f /sys/fs/cgroup/cgroup.controllers ]]; then
23
+ max_total_memory=$(cat /sys/fs/cgroup/memory.max)
24
+ else
25
+ max_total_memory=$(cat /sys/fs/cgroup/memory/memory.limit_in_bytes)
26
+ fi
23
27
  # Самой nodejs мы не можем отдать совсем всю память, операционная система+nginx все же требуют какого то количества.
24
28
  # Поэтому мы вычитаем 100мб на нужды ос
25
29
  node_memory_limit="$(($max_total_memory / 1024 / 1024 - 100))"
@@ -597,7 +597,7 @@
597
597
  "affectsGlobalScope": false
598
598
  },
599
599
  "../src/configs/util/register-ts-node.ts": {
600
- "version": "e69958949659a3b7ac7871be78c8035762c217068bdb8a351da80d4f7454d4f1",
600
+ "version": "a806ff42cf28f9ceb3b5e73b8683bf3f820946226669351f626c900d780f6436",
601
601
  "signature": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
602
602
  "affectsGlobalScope": true
603
603
  },
@@ -792,7 +792,7 @@
792
792
  "affectsGlobalScope": false
793
793
  },
794
794
  "../src/templates/start.template.ts": {
795
- "version": "545c8001c5ff6d1dbcf46c60b061cd8a36d0a4a79e72d8c2f0653341ce96264a",
795
+ "version": "880f33b82d22e208683f9096f25507b29f038c0ac42858f4bae39edb1dd988c6",
796
796
  "signature": "0fffbf1a5f54522ff7b89592bab1cf72966d7bdc613d52b0087717fcfec14b29",
797
797
  "affectsGlobalScope": false
798
798
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arui-scripts",
3
- "version": "12.4.0",
3
+ "version": "12.5.0",
4
4
  "main": "./build/index.js",
5
5
  "typings": "./build/index.d.ts",
6
6
  "license": "MPL-2.0",