Skip to content

Commit bfd23d6

Browse files
committed
fix: fix ESM module issues not picked up by test suite
1 parent 4f6b782 commit bfd23d6

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,3 @@ jobs:
3030
env:
3131
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3232
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
33-
working-directory: ./dist

adapter.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import { writeFileSync } from 'fs'
22
import { join } from 'path'
33
import { spawnSync } from 'child_process'
4+
import * as url from 'url'
45

56
import prepAdapter from 'sveltekit-adapter-aws-base'
67

8+
const __dirname = url.fileURLToPath(new URL('.', import.meta.url))
9+
710
export interface AWSAdapterProps {
811
artifactPath?: string
912
autoDeploy?: boolean

index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { adapter } from './adapter'
1+
export { adapter } from './adapter.js'

package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,21 @@
7777
[
7878
"@semantic-release/changelog",
7979
{
80-
"changelogFile": "../CHANGELOG.md"
80+
"changelogFile": "CHANGELOG.md"
81+
}
82+
],
83+
[
84+
"@semantic-release/npm",
85+
{
86+
"pkgRoot": "dist"
8187
}
8288
],
83-
"@semantic-release/npm",
8489
"@semantic-release/github",
8590
[
8691
"@semantic-release/git",
8792
{
8893
"assets": [
89-
"../CHANGELOG.md"
94+
"CHANGELOG.md"
9095
],
9196
"message": "chore(release): set `package.json` to ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
9297
}

0 commit comments

Comments
 (0)