Skip to content

Commit

Permalink
Merge pull request #196 from sebbo2002/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbo2002 committed Sep 11, 2024
2 parents 307b81f + d2dc220 commit 39c7ce6
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 34 deletions.
71 changes: 40 additions & 31 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"description": "Plugin for semantic-release that tags a previously built Docker image and pushes it to one or more Docker registries",
"devDependencies": {
"@eslint/js": "^9.9.0",
"@eslint/js": "^9.9.1",
"@qiwi/semantic-release-gh-pages-plugin": "^5.2.12",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/exec": "^6.0.3",
Expand All @@ -20,15 +20,15 @@
"@types/node": "^22.5.0",
"@types/semantic-release": "^20.0.6",
"c8": "^10.1.2",
"eslint": "^9.9.0",
"eslint": "^9.9.1",
"eslint-plugin-jsonc": "^2.16.0",
"license-checker": "^25.0.1",
"mocha": "^10.7.3",
"mochawesome": "^7.1.3",
"semantic-release-license": "^1.0.3",
"source-map-support": "^0.5.21",
"tsup": "^8.2.4",
"tsx": "^4.16.2",
"tsx": "^4.19.0",
"typedoc": "^0.26.6",
"typescript": "^5.5.4",
"typescript-eslint": "^8.2.0"
Expand Down
14 changes: 14 additions & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { defineConfig } from 'tsup';
import fs from 'fs';

const pkg = JSON.parse(
fs.readFileSync('./package.json', 'utf-8')
);

export default defineConfig({
clean: true,
Expand All @@ -7,8 +12,17 @@ export default defineConfig({
'src/bin/cli.ts',
'src/bin/start.ts'
],
esbuildOptions(options) {
options.banner = {
js: 'import { createRequire as topLevelCreateRequire } from \'module\';' +
'const require = topLevelCreateRequire(import.meta.url);'
};
},
external: [...Object.keys(pkg.devDependencies), 'semantic-release'],
noExternal: Object.keys(pkg.dependencies),
format: ['esm'],
dts: true,
shims: true,
sourcemap: true,
minify: true
});

0 comments on commit 39c7ce6

Please sign in to comment.