@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.
File without changes
File without changes
File without changes
File without changes
@@ -15,7 +15,6 @@ const APP_YAML_DEFAULT = () => ({
15
15
  DEBUG_HIDE_DATE: 'true',
16
16
  // DEBUG_COLORS: 'true',
17
17
  TZ: 'UTC',
18
- TS_NODE_PROJECT: './tsconfig.dist.json',
19
18
  },
20
19
  });
21
20
  export async function createAndSaveDeployInfo(backendCfg, targetDir) {
@@ -1,8 +1,5 @@
1
- import { dirname, join } from 'node:path';
2
- import { fileURLToPath } from 'node:url';
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.4",
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
- "@types/node": "^22",
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": "https://github.com/NaturalCycles/backend-lib"
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
+ }
@@ -18,7 +18,6 @@ const APP_YAML_DEFAULT = (): AppYaml => ({
18
18
  DEBUG_HIDE_DATE: 'true',
19
19
  // DEBUG_COLORS: 'true',
20
20
  TZ: 'UTC',
21
- TS_NODE_PROJECT: './tsconfig.dist.json',
22
21
  },
23
22
  })
24
23
 
package/src/paths.cnst.ts CHANGED
@@ -1,10 +1,6 @@
1
- import { dirname, join } from 'node:path'
2
- import { fileURLToPath } from 'node:url'
1
+ import { join } from 'node:path'
3
2
 
4
- const __filename = fileURLToPath(import.meta.url)
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`