diff --git a/.changeset/little-frogs-retire.md b/.changeset/little-frogs-retire.md new file mode 100644 index 0000000..d638550 --- /dev/null +++ b/.changeset/little-frogs-retire.md @@ -0,0 +1,9 @@ +--- +"@getlang/ast": patch +"@getlang/get": patch +"@getlang/lib": patch +"@getlang/parser": patch +"@getlang/walker": patch +--- + +fix publishing diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index f133b06..b273e77 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -19,7 +19,6 @@ jobs: - uses: actions/checkout@v7 - uses: oven-sh/setup-bun@v2 - run: bun install -g npm@latest - - run: npm -v && node -v - run: bun install --frozen-lockfile - run: bun --filter @getlang/parser compile - uses: changesets/action@v2.1.2 diff --git a/test/request.spec.ts b/test/request.spec.ts index b5c07c8..8783225 100644 --- a/test/request.spec.ts +++ b/test/request.spec.ts @@ -220,22 +220,19 @@ describe('request', () => { const [call] = (mockFetch as any).mock.calls const hdrs: Headers = call[1].headers const ct = hdrs.get('content-type') - expect(ct).toMatch( - /multipart\/form-data; boundary=----WebKitFormBoundary[0-9a-f]{32}/, - ) - - const boundary = ct?.split('boundary=-')[1] + const [k, v] = ct?.split('=') || [] + expect(k).toEqual('multipart/form-data; boundary') const body = dedent` - ---${boundary} + --${v} Content-Disposition: form-data; name="username" admin - ---${boundary} + --${v} Content-Disposition: form-data; name="password" test - ---${boundary}--\n + --${v}--\n ` expect(mockFetch).toHaveServed('https://example.com/login', { diff --git a/test/tsconfig.json b/test/tsconfig.json index f8728a0..44c10e8 100644 --- a/test/tsconfig.json +++ b/test/tsconfig.json @@ -1,6 +1,7 @@ { "extends": "../tsconfig.base.json", "compilerOptions": { - "types": ["bun"] + "types": ["bun"], + "rootDir": "." } } diff --git a/tsconfig.base.json b/tsconfig.base.json index fe5b1b2..cfe28cb 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -1,9 +1,11 @@ { "compilerOptions": { "customConditions": ["bun"], + "rootDir": "${configDir}/src", + "outDir": "${configDir}/dist", // Environment setup & latest features - "lib": ["esnext", "dom", "dom.iterable"], + "lib": ["ESNext"], "target": "ESNext", "module": "Preserve", "moduleDetection": "force", @@ -14,7 +16,7 @@ "moduleResolution": "bundler", "allowImportingTsExtensions": true, "verbatimModuleSyntax": true, - "noEmit": true, + "rewriteRelativeImportExtensions": true, // Best practices "strict": true,