@naturalcycles/backend-lib 9.0.4 → 9.0.6
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/dist/bin/deploy-gae.js +0 -0
- package/dist/bin/deploy-health-check.js +0 -0
- package/dist/bin/deploy-prepare.js +0 -0
- package/dist/bin/undeploy-gae.js +0 -0
- package/dist/deploy/deploy.util.js +0 -1
- package/dist/paths.cnst.js +2 -5
- package/package.json +21 -26
- package/src/deploy/deploy.util.ts +0 -1
- package/src/paths.cnst.ts +2 -6
package/dist/bin/deploy-gae.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/bin/undeploy-gae.js
CHANGED
|
File without changes
|
package/dist/paths.cnst.js
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
4
|
-
const __dirname = dirname(__filename);
|
|
5
|
-
export const projectDir = join(__dirname, '/..');
|
|
1
|
+
import { join } from 'node:path';
|
|
2
|
+
export const projectDir = join(import.meta.dirname, '..');
|
|
6
3
|
export const resourcesDir = `${projectDir}/resources`;
|
|
7
4
|
export const srcDir = `${projectDir}/src`;
|
|
8
5
|
export const testDir = `${srcDir}/test`;
|
package/package.json
CHANGED
|
@@ -1,23 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturalcycles/backend-lib",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "9.0.
|
|
5
|
-
"scripts": {
|
|
6
|
-
"prepare": "husky",
|
|
7
|
-
"build": "dev-lib build",
|
|
8
|
-
"test": "dev-lib test",
|
|
9
|
-
"lint": "dev-lib lint",
|
|
10
|
-
"bt": "dev-lib bt",
|
|
11
|
-
"lbt": "dev-lib lbt",
|
|
12
|
-
"dev": "APP_ENV=dev tsx watch src/test/server/server.ts",
|
|
13
|
-
"docs-serve": "NODE_OPTIONS=--openssl-legacy-provider vuepress dev docs",
|
|
14
|
-
"docs-build": "NODE_OPTIONS=--openssl-legacy-provider vuepress build docs",
|
|
15
|
-
"deploy-gae": "yarn tsx src/bin/deploy-gae.ts",
|
|
16
|
-
"deploy-prepare": "yarn tsx src/bin/deploy-prepare.ts",
|
|
17
|
-
"deploy-prepare-debug": "AA=AA1 BB=BB1 yarn tsx src/bin/deploy-prepare.ts --projectDir ./src/test/project",
|
|
18
|
-
"deploy-health-check-debug1": "yarn tsx src/bin/deploy-health-check.ts --url https://api-master.naturalcycles.com",
|
|
19
|
-
"deploy-health-check-debug2": "yarn tsx src/bin/deploy-health-check.ts --url https://api-master2.naturalcycles.com --thresholdUnhealthy 5"
|
|
20
|
-
},
|
|
4
|
+
"version": "9.0.6",
|
|
21
5
|
"peerDependencies": {
|
|
22
6
|
"@sentry/node": "^9"
|
|
23
7
|
},
|
|
@@ -40,14 +24,9 @@
|
|
|
40
24
|
"simple-git": "^3"
|
|
41
25
|
},
|
|
42
26
|
"devDependencies": {
|
|
43
|
-
"@naturalcycles/bench-lib": "^4",
|
|
44
|
-
"@naturalcycles/dev-lib": "^18",
|
|
45
27
|
"@sentry/node": "^9",
|
|
46
28
|
"@types/ejs": "^3",
|
|
47
|
-
"
|
|
48
|
-
"fastify": "^5",
|
|
49
|
-
"tsx": "^4",
|
|
50
|
-
"vitest": "^3"
|
|
29
|
+
"fastify": "^5"
|
|
51
30
|
},
|
|
52
31
|
"files": [
|
|
53
32
|
"dist",
|
|
@@ -72,12 +51,28 @@
|
|
|
72
51
|
},
|
|
73
52
|
"repository": {
|
|
74
53
|
"type": "git",
|
|
75
|
-
"url": "
|
|
54
|
+
"url": "git@github.com:NaturalCycles/js-libs.git",
|
|
55
|
+
"directory": "packages/backend-lib"
|
|
76
56
|
},
|
|
77
57
|
"engines": {
|
|
78
58
|
"node": ">=22.12.0"
|
|
79
59
|
},
|
|
80
60
|
"description": "Standard library for making Express.js / AppEngine based backend services",
|
|
81
61
|
"author": "Natural Cycles Team",
|
|
82
|
-
"license": "MIT"
|
|
83
|
-
|
|
62
|
+
"license": "MIT",
|
|
63
|
+
"scripts": {
|
|
64
|
+
"build": "dev-lib build",
|
|
65
|
+
"test": "dev-lib test",
|
|
66
|
+
"lint": "dev-lib lint",
|
|
67
|
+
"bt": "dev-lib bt",
|
|
68
|
+
"lbt": "dev-lib lbt",
|
|
69
|
+
"dev": "APP_ENV=dev tsx watch src/test/server/server.ts",
|
|
70
|
+
"docs-serve": "NODE_OPTIONS=--openssl-legacy-provider vuepress dev docs",
|
|
71
|
+
"docs-build": "NODE_OPTIONS=--openssl-legacy-provider vuepress build docs",
|
|
72
|
+
"deploy-gae": "yarn tsx src/bin/deploy-gae.ts",
|
|
73
|
+
"deploy-prepare": "yarn tsx src/bin/deploy-prepare.ts",
|
|
74
|
+
"deploy-prepare-debug": "AA=AA1 BB=BB1 yarn tsx src/bin/deploy-prepare.ts --projectDir ./src/test/project",
|
|
75
|
+
"deploy-health-check-debug1": "yarn tsx src/bin/deploy-health-check.ts --url https://api-master.naturalcycles.com",
|
|
76
|
+
"deploy-health-check-debug2": "yarn tsx src/bin/deploy-health-check.ts --url https://api-master2.naturalcycles.com --thresholdUnhealthy 5"
|
|
77
|
+
}
|
|
78
|
+
}
|
package/src/paths.cnst.ts
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { fileURLToPath } from 'node:url'
|
|
1
|
+
import { join } from 'node:path'
|
|
3
2
|
|
|
4
|
-
const
|
|
5
|
-
const __dirname = dirname(__filename)
|
|
6
|
-
|
|
7
|
-
export const projectDir = join(__dirname, '/..')
|
|
3
|
+
export const projectDir = join(import.meta.dirname, '..')
|
|
8
4
|
export const resourcesDir = `${projectDir}/resources`
|
|
9
5
|
export const srcDir = `${projectDir}/src`
|
|
10
6
|
export const testDir = `${srcDir}/test`
|