[njs] Fixed ts_test target on MacOS.

Dmitry Volyntsev xeioex at nginx.com
Tue Aug 9 23:43:45 UTC 2022


details:   https://hg.nginx.org/njs/rev/335ff5a4539d
branches:  
changeset: 1925:335ff5a4539d
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Mon Aug 08 23:18:51 2022 -0700
description:
Fixed ts_test target on MacOS.

diffstat:

 auto/make       |  2 +-
 ts/package.json |  2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r 5ee3ef8b969c -r 335ff5a4539d auto/make
--- a/auto/make	Mon Aug 08 22:41:34 2022 -0700
+++ b/auto/make	Mon Aug 08 23:18:51 2022 -0700
@@ -275,7 +275,7 @@ cat << END >> $NJS_MAKEFILE
 $NJS_BUILD_DIR/ts/package.json: $njs_ts_deps
 	cp -fr ts $NJS_BUILD_DIR/
 	cp LICENSE $NJS_BUILD_DIR/ts/
-	sed 's/\("version":\s*\)"\([^"]\+\)"/\1"\$(NJS_TYPES_VER)"/' \\
+	sed 's/__VERSION__/"\$(NJS_TYPES_VER)"/' \\
 		ts/package.json > $NJS_BUILD_DIR/ts/package.json
 
 $NJS_BUILD_DIR/ts/node_modules: $NJS_BUILD_DIR/ts/package.json
diff -r 5ee3ef8b969c -r 335ff5a4539d ts/package.json
--- a/ts/package.json	Mon Aug 08 22:41:34 2022 -0700
+++ b/ts/package.json	Mon Aug 08 23:18:51 2022 -0700
@@ -1,6 +1,6 @@
 {
   "name": "njs-types",
-  "version": "0.0.0-dev",
+  "version": __VERSION__,
   "description": "TypeScript definitions for njs scripting language and nginx js modules.",
   "scripts": {
     "lint": "tsc"



More information about the nginx-devel mailing list