Skip to content

Commit 80f0f4b

Browse files
committed
chore: bump version to 2.1.0 and update rollup config
- Bump package version from 2.0.0 to 2.1.0 - Update rollup.config.ts to match official TypeScript action template - Add external dependencies to prevent bundling issues - Fix input file path and ensure proper ES module build
1 parent 3920ed8 commit 80f0f4b

File tree

3 files changed

+14
-18
lines changed

3 files changed

+14
-18
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@opsless/ms-teams-github-actions",
3-
"version": "2.0.0",
3+
"version": "2.1.0",
44
"private": true,
55
"description": "MS Teams Github Actions integration",
66
"type": "module",

rollup.config.ts

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
import { defineConfig } from 'rollup'
2-
import typescript from '@rollup/plugin-typescript'
3-
import { nodeResolve } from '@rollup/plugin-node-resolve'
1+
// See: https://rollupjs.org/introduction/
2+
43
import commonjs from '@rollup/plugin-commonjs'
4+
import nodeResolve from '@rollup/plugin-node-resolve'
5+
import typescript from '@rollup/plugin-typescript'
56

6-
export default defineConfig({
7+
const config = {
78
input: 'src/main.ts',
89
output: {
10+
esModule: true,
911
file: 'dist/index.js',
1012
format: 'es',
11-
banner: '#!/usr/bin/env node'
13+
sourcemap: true
1214
},
1315
external: [
1416
'@actions/core',
@@ -18,13 +20,7 @@ export default defineConfig({
1820
'adaptivecards-templating',
1921
'cockatiel'
2022
],
21-
plugins: [
22-
nodeResolve({
23-
preferBuiltins: true
24-
}),
25-
commonjs(),
26-
typescript({
27-
tsconfig: './tsconfig.json'
28-
})
29-
]
30-
})
23+
plugins: [typescript(), nodeResolve({ preferBuiltins: true }), commonjs()]
24+
}
25+
26+
export default config

0 commit comments

Comments
 (0)