This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-release.git


The following commit(s) were added to refs/heads/main by this push:
     new 9580e51  Add TypeScript configuration
9580e51 is described below

commit 9580e51d53a3c51091ca16aeaf3491fec1a152df
Author: Sean B. Palmer <[email protected]>
AuthorDate: Wed May 21 15:53:35 2025 +0100

    Add TypeScript configuration
---
 Makefile      |  8 +-------
 tsconfig.json | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile
index 19920cc..f37ca93 100644
--- a/Makefile
+++ b/Makefile
@@ -18,13 +18,7 @@ build-playwright:
        docker build -t atr-playwright -f tests/Dockerfile.playwright playwright
 
 build-ts:
-       for ts_file in atr/static/ts/*.ts; \
-       do \
-         if [ -e "$$ts_file" ]; \
-         then \
-           tsc "$$ts_file" --outDir atr/static/js --lib es2015,dom --target 
es2015 --module none; \
-         fi; \
-       done
+       tsc -p tsconfig.json
 
 build-ubuntu:
        $(SCRIPTS)/build Dockerfile.ubuntu $(IMAGE)
diff --git a/tsconfig.json b/tsconfig.json
new file mode 100644
index 0000000..db5822f
--- /dev/null
+++ b/tsconfig.json
@@ -0,0 +1,19 @@
+{
+  "compilerOptions": {
+    "target": "es6",
+    "module": "commonjs",
+    "outDir": "./atr/static/js",
+    "rootDir": "./atr/static/ts",
+    "strict": true,
+    "esModuleInterop": true,
+    "skipLibCheck": true,
+    "forceConsistentCasingInFileNames": true,
+    "resolveJsonModule": true
+  },
+  "include": [
+    "./atr/static/ts/**/*.ts"
+  ],
+  "exclude": [
+    "./atr/static/js"
+  ]
+}


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to