From 9a37f9796037b2d277bc652e267297f3e5e059e5 Mon Sep 17 00:00:00 2001 From: DavidVentura Date: Wed, 31 Jan 2024 18:28:16 +0100 Subject: [PATCH] add build step --- .gitignore | 1 + Makefile | 6 +++++- tsconfig.json | 10 ++++++++-- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 4941bee..c693559 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ bundle.js venv node_modules +build diff --git a/Makefile b/Makefile index e538de5..b5843a0 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: run hook install-wireshark-dissector test +.PHONY: run hook install-wireshark-dissector test build bundle.js: frida-hooks.js func_replacements.js ~/node_modules/.bin/frida-compile -o $@ frida-hooks.js @@ -8,6 +8,10 @@ venv: requirements.txt ./venv/bin/pip install -r requirements.txt touch venv +build: node_modules + ./node_modules/.bin/tsc + tar czf build.tar.gz build package.json + run: node_modules ./node_modules/.bin/ts-node --esm http_server.ts diff --git a/tsconfig.json b/tsconfig.json index 716d550..3a68ebc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,10 +1,16 @@ { + "include": ["*.ts"], "compilerOptions": { "target": "es6", - "module": "esnext", + "module": "es6", + "moduleResolution": "node", "esModuleInterop": true, - "moduleResolution": "node" + "preserveConstEnums": true, + "outDir": "./build/", + "rootDir": "./", + "strict": false, + "sourceMap": false } }