From 311138c27754ac17500d9f8eb62acd2c64f5a6c3 Mon Sep 17 00:00:00 2001 From: Raphael Forment Date: Sun, 13 Aug 2023 14:06:27 +0200 Subject: [PATCH] repair build --- package.json | 2 +- src/API.ts | 3 ++- src/Evaluator.ts | 2 +- yarn.lock | 3 ++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index a9a0b1c..e933d89 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "superdough": "^0.9.3", "tailwindcss": "^3.3.3", "tone": "^14.8.49", - "zifferjs": "file:../zifferjs", + "zifferjs": "https://github.com/amiika/zifferjs.git", "zzfx": "^1.2.0" } } diff --git a/src/API.ts b/src/API.ts index 3510cb6..e806672 100644 --- a/src/API.ts +++ b/src/API.ts @@ -8,6 +8,7 @@ import { superdough, samples, initAudioOnFirstClick, registerSynthSounds +// @ts-ignore } from 'superdough'; /** @@ -24,7 +25,7 @@ Array.prototype.in = function(this: T[], value: T): boolean { }; -const init = Promise.all([ +Promise.all([ initAudioOnFirstClick(), samples('github:tidalcycles/Dirt-Samples/master'), samples('github:kindohm/expedition/tree/master/samples'), diff --git a/src/Evaluator.ts b/src/Evaluator.ts index 59482a2..bfcfe11 100644 --- a/src/Evaluator.ts +++ b/src/Evaluator.ts @@ -7,7 +7,7 @@ function codeInterceptor(code: string): string { .replace(/t\[(\d+),(\d+)\]/g, 'mod($1,$2)') .replace(/b\[(\d+),(\d+)\]/g, '[$1,$2].includes(beat)') .replace(/eb\[(\d+),(\d+)\]/g, '[$1,$2].includes(ebeat)') - .replace(/m\[(\d+),(\d+)\]/g, '[$1,$2].includes(bar)'); + .replace(/m\[(\d+),(\d+)\]/g, '[$1,$2].includes(bar)') } const delay = (ms: number) => new Promise((_, reject) => setTimeout(() => reject(new Error('Operation took too long')), ms)); diff --git a/yarn.lock b/yarn.lock index 2a03731..2e46e52 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1158,8 +1158,9 @@ yaml@^2.1.1: resolved "https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz" integrity sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ== -"zifferjs@file:../zifferjs": +"zifferjs@https://github.com/amiika/zifferjs.git": version "0.0.0" + resolved "https://github.com/amiika/zifferjs.git#0254770c19db8772a9c3cb6b0571f2b5007593e6" dependencies: "@types/seedrandom" "^3.0.5" lru-cache "^10.0.0"