From db9aa02220f74b9d0b68bcb7977544e1b285c3a3 Mon Sep 17 00:00:00 2001 From: David Blass Date: Mon, 27 Jan 2025 10:40:31 -0500 Subject: [PATCH 1/4] initial script --- userTests/arktype/build.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 userTests/arktype/build.sh diff --git a/userTests/arktype/build.sh b/userTests/arktype/build.sh new file mode 100644 index 0000000..947eba9 --- /dev/null +++ b/userTests/arktype/build.sh @@ -0,0 +1,7 @@ +npm i -g pnpm +rm -rf arktype +git clone --depth 1 https://github.com/arktypeio/arktype.git arktype +cd arktype + +pnpm i +pnpm build From ba6ad28f95feaccbadc6836386cf991f2afbbaf5 Mon Sep 17 00:00:00 2001 From: David Blass Date: Mon, 27 Jan 2025 13:41:39 -0500 Subject: [PATCH 2/4] fix linking --- userTests/arktype/build.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/userTests/arktype/build.sh b/userTests/arktype/build.sh index 947eba9..241495f 100644 --- a/userTests/arktype/build.sh +++ b/userTests/arktype/build.sh @@ -1,7 +1,12 @@ npm i -g pnpm rm -rf arktype git clone --depth 1 https://github.com/arktypeio/arktype.git arktype -cd arktype +START=$(pwd) +cd $TS +pnpm link +cd $START/arktype + +pnpm link typescript pnpm i pnpm build From da4aa02ac2094ad7cdb1bf01175ee35e27ada88c Mon Sep 17 00:00:00 2001 From: David Blass Date: Mon, 27 Jan 2025 15:09:32 -0500 Subject: [PATCH 3/4] switch to typescript-eslint strategy --- userTests/arktype/build.sh | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/userTests/arktype/build.sh b/userTests/arktype/build.sh index 241495f..98a68a1 100644 --- a/userTests/arktype/build.sh +++ b/userTests/arktype/build.sh @@ -1,12 +1,8 @@ npm i -g pnpm rm -rf arktype git clone --depth 1 https://github.com/arktypeio/arktype.git arktype +cd arktype -START=$(pwd) -cd $TS -pnpm link -cd $START/arktype - -pnpm link typescript +npx json -I -f package.json -e "this.resolutions.typescript = 'file:$TS'" pnpm i -pnpm build +pnpm tsc From 9ab01408e5db946b994b14acc650da415d20f9fd Mon Sep 17 00:00:00 2001 From: David Blass Date: Mon, 27 Jan 2025 15:19:37 -0500 Subject: [PATCH 4/4] fix script (really this time) --- userTests/arktype/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/userTests/arktype/build.sh b/userTests/arktype/build.sh index 98a68a1..e46cefc 100644 --- a/userTests/arktype/build.sh +++ b/userTests/arktype/build.sh @@ -1,8 +1,10 @@ +set -x + npm i -g pnpm rm -rf arktype git clone --depth 1 https://github.com/arktypeio/arktype.git arktype cd arktype -npx json -I -f package.json -e "this.resolutions.typescript = 'file:$TS'" +npx json -I -f package.json -e "this.resolutions = { ...this.resolutions, typescript: 'file:$TS' } " pnpm i pnpm tsc