diff --git a/.build-raptor.json b/.build-raptor.jsonc similarity index 76% rename from .build-raptor.json rename to .build-raptor.jsonc index 630bbf98..00728412 100644 --- a/.build-raptor.json +++ b/.build-raptor.jsonc @@ -1,7 +1,9 @@ { "verbosePrintTasks": [], "tightFingerprints": true, + "fingerprintSeed": "1", "repoProtocol": { + "compilerExecutable": "tsgo", "install": "dormant", "additionalJestEnvVars": { "NODE_OPTIONS": "--experimental-vm-modules" diff --git a/modules/build-raptor-core-testkit/src/simple-node-repo-protocol.ts b/modules/build-raptor-core-testkit/src/simple-node-repo-protocol.ts index 72591abe..e79e71ca 100644 --- a/modules/build-raptor-core-testkit/src/simple-node-repo-protocol.ts +++ b/modules/build-raptor-core-testkit/src/simple-node-repo-protocol.ts @@ -92,8 +92,8 @@ export class SimpleNodeRepoProtocol implements RepoProtocol { private async read() { const list = await fs.promises.readdir(this.rootDir.resolve(this.pathToModulesDir)) - return await promises( - list.map(async name => { + const ret = await promises(list) + .map(async name => { const pir = this.pathToModulesDir.expand(name) const parsed = await this.readPackageJsonAt(pir) return { @@ -101,8 +101,10 @@ export class SimpleNodeRepoProtocol implements RepoProtocol { id: UnitId(parsed.name), packageJson: parsed, } - }), - ).reify() + }) + .reify() + + return ret } async getUnits(): Promise { diff --git a/modules/misc/tests/promises.spec.ts b/modules/misc/tests/promises.spec.ts index 7e72a711..45ca7c4c 100644 --- a/modules/misc/tests/promises.spec.ts +++ b/modules/misc/tests/promises.spec.ts @@ -30,15 +30,21 @@ describe('promises', () => { expect(await ps.reify()).toEqual(['four', 'and', 'years']) }) test('can be applied also to Promises', async () => { - const ps = promises([Promise.resolve(1), Promise.resolve(2), Promise.resolve(3), Promise.resolve(4)]).filter( - async x => x % 3 === 1, - ) + const ps = promises([ + Promise.resolve(1), + Promise.resolve(2), + Promise.resolve(3), + Promise.resolve(4), + ]).filter(async x => x % 3 === 1) expect(await ps.reify()).toEqual([1, 4]) }) test('allows the predicate to be a plain (non async) function', async () => { - const ps = promises([Promise.resolve(1), Promise.resolve(2), Promise.resolve(3), Promise.resolve(4)]).filter( - x => x % 2 === 0, - ) + const ps = promises([ + Promise.resolve(1), + Promise.resolve(2), + Promise.resolve(3), + Promise.resolve(4), + ]).filter(x => x % 2 === 0) expect(await ps.reify()).toEqual([2, 4]) }) test('combined with map', async () => { diff --git a/package.json b/package.json index 5adf1623..63673300 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "@types/node": "^20.0.0", "@typescript-eslint/eslint-plugin": "^5.7.0", "@typescript-eslint/parser": "^5.7.0", + "@typescript/native-preview": "^7.0.0-dev.20251217.1", "dts-bundle-generator": "^9.5.1", "esbuild": "^0.25.1", "eslint": "^8.45.0", diff --git a/tsconfig-base.json b/tsconfig-base.json index 5d6a52fe..833ca735 100644 --- a/tsconfig-base.json +++ b/tsconfig-base.json @@ -13,7 +13,6 @@ "esModuleInterop": true, "skipLibCheck": true, "resolveJsonModule": true, - "baseUrl": ".", "paths": { "safe-stable-stringify": ["./types/safe-stable-stringify"] } diff --git a/yarn.lock b/yarn.lock index b29bf4bd..e114f6be 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2325,6 +2325,54 @@ "@typescript-eslint/types" "5.7.0" eslint-visitor-keys "^3.0.0" +"@typescript/native-preview-darwin-arm64@7.0.0-dev.20251225.1": + version "7.0.0-dev.20251225.1" + resolved "https://registry.yarnpkg.com/@typescript/native-preview-darwin-arm64/-/native-preview-darwin-arm64-7.0.0-dev.20251225.1.tgz#940086b34e0d31aecc96f7c9e89728daa0310909" + integrity sha512-YyjUjsQzJgx48BxtDQ40AfOdXexxcdVGNVA1m5pbuZeb4SwpKoRHy9eBq/QhPDNQApZtQB5RuEb5/X8lfTeaQw== + +"@typescript/native-preview-darwin-x64@7.0.0-dev.20251225.1": + version "7.0.0-dev.20251225.1" + resolved "https://registry.yarnpkg.com/@typescript/native-preview-darwin-x64/-/native-preview-darwin-x64-7.0.0-dev.20251225.1.tgz#9e2761156e1ac6cd3e1936eca8ccde95f5025ce3" + integrity sha512-GPQ/Xm5FNGoDYm0+BeReBrCvdyUrTP1ZSBqHGR+lkKBmSrAfwaaflGis31TPjsBiXg/MgvFxVNAcYh9lJOjueA== + +"@typescript/native-preview-linux-arm64@7.0.0-dev.20251225.1": + version "7.0.0-dev.20251225.1" + resolved "https://registry.yarnpkg.com/@typescript/native-preview-linux-arm64/-/native-preview-linux-arm64-7.0.0-dev.20251225.1.tgz#a30a851db09a7e4e498ac43db420abd9821d6a7b" + integrity sha512-n6RAbCr7JwdwdXJZsWqa9A+lz6CFjHJ24JeUy3xDFLw5N2kIDoINpAPS3qILsChBuMKwSKNug2tNF0Us4Pf2qg== + +"@typescript/native-preview-linux-arm@7.0.0-dev.20251225.1": + version "7.0.0-dev.20251225.1" + resolved "https://registry.yarnpkg.com/@typescript/native-preview-linux-arm/-/native-preview-linux-arm-7.0.0-dev.20251225.1.tgz#910d3fa6c84c561ce66661e0330e054577d492cc" + integrity sha512-N/syQPMvfboRiC8YEwSMqqN0d5HK/ha3ITahh5jW8LA+3EoPGygWnDVvlaQubV7Pwm/K9vvf9O7mMS1tAOo1tA== + +"@typescript/native-preview-linux-x64@7.0.0-dev.20251225.1": + version "7.0.0-dev.20251225.1" + resolved "https://registry.yarnpkg.com/@typescript/native-preview-linux-x64/-/native-preview-linux-x64-7.0.0-dev.20251225.1.tgz#c5c67e858bd060c48a18afcb994d5cf56d08fe27" + integrity sha512-mG3I+Gr6Htgvz8Go7jG+GlEnML6bIznbk0O9v1dtLrBOgKG9LqGPp3mjRkLGD54yWeE0GW2EWOFNfmnB44tumg== + +"@typescript/native-preview-win32-arm64@7.0.0-dev.20251225.1": + version "7.0.0-dev.20251225.1" + resolved "https://registry.yarnpkg.com/@typescript/native-preview-win32-arm64/-/native-preview-win32-arm64-7.0.0-dev.20251225.1.tgz#8efa1afc55569063154e5c12b3b1319bb13f16b0" + integrity sha512-+kJtJ0HQXqBmzKdQRSe+EUTxHccoME9j3x6FYMInPpk2jsZgiVmnRc7MsaUSoHb6GhgFMF0aGSNIcw3QfgJ/gg== + +"@typescript/native-preview-win32-x64@7.0.0-dev.20251225.1": + version "7.0.0-dev.20251225.1" + resolved "https://registry.yarnpkg.com/@typescript/native-preview-win32-x64/-/native-preview-win32-x64-7.0.0-dev.20251225.1.tgz#59c839ea9cb90f3db4982b581399d96bca8b7f49" + integrity sha512-e0r08Y6Yps8x0kw3IfiJ8R2afyqIupVvzaxhydKtR0bVNhA/HbVCLYNEB7UmjRS3sWqGYVA+GxegMpQKryrfog== + +"@typescript/native-preview@^7.0.0-dev.20251217.1": + version "7.0.0-dev.20251225.1" + resolved "https://registry.yarnpkg.com/@typescript/native-preview/-/native-preview-7.0.0-dev.20251225.1.tgz#093680b7c2750b812ba8b2ae2dd70c905337886e" + integrity sha512-vb+1x8j1uRG6hxKWJ3I8XDuq8FvQw0qTDPOQK/DtBZOdoWDFDWdmvFgGQwJ6h2se/W0x31Y4r+SFxj9B/uzgTA== + optionalDependencies: + "@typescript/native-preview-darwin-arm64" "7.0.0-dev.20251225.1" + "@typescript/native-preview-darwin-x64" "7.0.0-dev.20251225.1" + "@typescript/native-preview-linux-arm" "7.0.0-dev.20251225.1" + "@typescript/native-preview-linux-arm64" "7.0.0-dev.20251225.1" + "@typescript/native-preview-linux-x64" "7.0.0-dev.20251225.1" + "@typescript/native-preview-win32-arm64" "7.0.0-dev.20251225.1" + "@typescript/native-preview-win32-x64" "7.0.0-dev.20251225.1" + acorn-jsx@^5.3.2: version "5.3.2" resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937"