Types: moved all TS type descriptions to ts/ in the repo root.
diff --git a/auto/make b/auto/make
index b834ab0..c085e95 100644
--- a/auto/make
+++ b/auto/make
@@ -234,10 +234,11 @@
 
 	$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
diff --git a/nginx/ts/ngx_http_js_module.d.ts b/ts/ngx_http_js_module.d.ts
similarity index 100%
rename from nginx/ts/ngx_http_js_module.d.ts
rename to ts/ngx_http_js_module.d.ts
diff --git a/nginx/ts/ngx_stream_js_module.d.ts b/ts/ngx_stream_js_module.d.ts
similarity index 100%
rename from nginx/ts/ngx_stream_js_module.d.ts
rename to ts/ngx_stream_js_module.d.ts
diff --git a/src/ts/njs_core.d.ts b/ts/njs_core.d.ts
similarity index 100%
rename from src/ts/njs_core.d.ts
rename to ts/njs_core.d.ts
diff --git a/src/ts/crypto.d.ts b/ts/njs_modules/crypto.d.ts
similarity index 97%
rename from src/ts/crypto.d.ts
rename to ts/njs_modules/crypto.d.ts
index 5895b3e..345a2d1 100644
--- a/src/ts/crypto.d.ts
+++ b/ts/njs_modules/crypto.d.ts
@@ -1,4 +1,4 @@
-/// <reference path="njs_core.d.ts" />
+/// <reference path="../njs_core.d.ts" />
 
 declare module "crypto" {
 
diff --git a/src/ts/fs.d.ts b/ts/njs_modules/fs.d.ts
similarity index 99%
rename from src/ts/fs.d.ts
rename to ts/njs_modules/fs.d.ts
index 682cee4..cc24f24 100644
--- a/src/ts/fs.d.ts
+++ b/ts/njs_modules/fs.d.ts
@@ -1,4 +1,4 @@
-/// <reference path="njs_core.d.ts" />
+/// <reference path="../njs_core.d.ts" />
 
 declare module "fs" {
 
diff --git a/src/ts/querystring.d.ts b/ts/njs_modules/querystring.d.ts
similarity index 98%
rename from src/ts/querystring.d.ts
rename to ts/njs_modules/querystring.d.ts
index 0368ec1..4058f5a 100644
--- a/src/ts/querystring.d.ts
+++ b/ts/njs_modules/querystring.d.ts
@@ -1,4 +1,4 @@
-/// <reference path="njs_core.d.ts" />
+/// <reference path="../njs_core.d.ts" />
 
 declare module "querystring" {
 
diff --git a/src/ts/njs_shell.d.ts b/ts/njs_shell.d.ts
similarity index 100%
rename from src/ts/njs_shell.d.ts
rename to ts/njs_shell.d.ts