diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index e69de29..0000000 diff --git a/lib/main.ts b/lib/main.ts deleted file mode 100644 index bb5cecb..0000000 --- a/lib/main.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './app-router'; diff --git a/package.json b/package.json index cd11ab0..42d8fa4 100644 --- a/package.json +++ b/package.json @@ -4,19 +4,20 @@ "author": "Contentful", "license": "MIT", "description": "Contentful helper SDK for Vercel platform app integration to enable live preview", - "source": "./src/index.ts", - "main": "./dist/main.js", - "module": "./dist/main.js", - "typings": "./dist/main.d.ts", + "source": "./lib/index.ts", + "main": "./dist/index.js", + "module": "./dist/index.js", + "typings": "./dist/index.d.ts", + "type": "module", "files": [ "dist", "app-router" ], "exports": { ".": { - "import": "./dist/main.js", - "require": "./dist/main.js", - "types": "./dist/main.d.ts" + "import": "./dist/index.js", + "require": "./dist/index.js", + "types": "./dist/index.d.ts" }, "./app-router": { "import": "./dist/app-router/handlers/app.js", diff --git a/release.config.js b/release.config.js deleted file mode 100644 index dca5083..0000000 --- a/release.config.js +++ /dev/null @@ -1,18 +0,0 @@ -module.exports = { - branches: ['main'], - plugins: [ - '@semantic-release/commit-analyzer', - '@semantic-release/release-notes-generator', - '@semantic-release/changelog', - '@semantic-release/npm', - [ - '@semantic-release/git', - { - assets: ['package.json', 'package-lock.json', 'CHANGELOG.md'], - message: - 'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}', - }, - ], - '@semantic-release/github', - ], -}; diff --git a/release.config.json b/release.config.json new file mode 100644 index 0000000..b5154ba --- /dev/null +++ b/release.config.json @@ -0,0 +1,17 @@ +{ + "branches": ["main"], + "plugins": [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + "@semantic-release/changelog", + "@semantic-release/npm", + [ + "@semantic-release/git", + { + "assets": ["package.json", "package-lock.json", "CHANGELOG.md"], + "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" + } + ], + "@semantic-release/github" + ] +}