]> git.kaiwu.me - njs.git/commitdiff
Types: moved all TS type descriptions to ts/ in the repo root.
authorJakub Jirutka <jakub@jirutka.cz>
Mon, 19 Oct 2020 21:51:54 +0000 (23:51 +0200)
committerJakub Jirutka <jakub@jirutka.cz>
Mon, 19 Oct 2020 21:51:54 +0000 (23:51 +0200)
auto/make
ts/ngx_http_js_module.d.ts [moved from nginx/ts/ngx_http_js_module.d.ts with 100% similarity]
ts/ngx_stream_js_module.d.ts [moved from nginx/ts/ngx_stream_js_module.d.ts with 100% similarity]
ts/njs_core.d.ts [moved from src/ts/njs_core.d.ts with 100% similarity]
ts/njs_modules/crypto.d.ts [moved from src/ts/crypto.d.ts with 98% similarity]
ts/njs_modules/fs.d.ts [moved from src/ts/fs.d.ts with 99% similarity]
ts/njs_modules/querystring.d.ts [moved from src/ts/querystring.d.ts with 99% similarity]
ts/njs_shell.d.ts [moved from src/ts/njs_shell.d.ts with 100% similarity]

index b834ab0a1bea67bafb82374d9c542977b958bf4f..c085e95dc0e46a3d10c08beb52fed1330718992f 100644 (file)
--- a/auto/make
+++ b/auto/make
@@ -234,10 +234,11 @@ benchmark: $NJS_BUILD_DIR/njs_auto_config.h \\
 
        $NJS_BUILD_DIR/njs_benchmark
 
+.PHONY: ts
 ts:
-       mkdir -p $NJS_BUILD_DIR/ts
-       cp nginx/ts/*.ts $NJS_BUILD_DIR/ts/
-       cp src/ts/*.ts $NJS_BUILD_DIR/ts/
+       mkdir -p $NJS_BUILD_DIR/ts/njs_modules
+       cp ts/*.d.ts $NJS_BUILD_DIR/ts/
+       cp ts/njs_modules/* $NJS_BUILD_DIR/ts/njs_modules/
 
 ts_test: ts
        tsc ./test/ts/test.ts
similarity index 100%
rename from src/ts/njs_core.d.ts
rename to ts/njs_core.d.ts
similarity index 98%
rename from src/ts/crypto.d.ts
rename to ts/njs_modules/crypto.d.ts
index 5895b3e74a2cdc765c57eb343d9be121edd1bbdc..345a2d1a757c853d12b6b53c7d0764095f2abd40 100644 (file)
@@ -1,4 +1,4 @@
-/// <reference path="njs_core.d.ts" />
+/// <reference path="../njs_core.d.ts" />
 
 declare module "crypto" {
 
similarity index 99%
rename from src/ts/fs.d.ts
rename to ts/njs_modules/fs.d.ts
index 682cee49092f83e3b50ab15b05074fc6a553d6bb..cc24f243a62e1eaddf1f64b6fec3e2c91062893b 100644 (file)
@@ -1,4 +1,4 @@
-/// <reference path="njs_core.d.ts" />
+/// <reference path="../njs_core.d.ts" />
 
 declare module "fs" {
 
similarity index 99%
rename from src/ts/querystring.d.ts
rename to ts/njs_modules/querystring.d.ts
index 0368ec1c49d5ba2ca0f083126376ba86bc41f7f3..4058f5a1c4ec131f78a463c9782b81b1c633372f 100644 (file)
@@ -1,4 +1,4 @@
-/// <reference path="njs_core.d.ts" />
+/// <reference path="../njs_core.d.ts" />
 
 declare module "querystring" {
 
similarity index 100%
rename from src/ts/njs_shell.d.ts
rename to ts/njs_shell.d.ts