Skip to content

Commit d40575a

Browse files
Merge pull request #413 from technote-space/release/next-v5.3.4
release: v5.3.5
2 parents 75cadb4 + a347a5e commit d40575a

File tree

3 files changed

+175
-159
lines changed

3 files changed

+175
-159
lines changed

package.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@technote-space/github-action-helper",
3-
"version": "5.3.4",
3+
"version": "5.3.5",
44
"description": "Helper for GitHub Action.",
55
"keywords": [
66
"github",
@@ -21,7 +21,10 @@
2121
"url": "https://technote.space"
2222
},
2323
"type": "module",
24-
"exports": "./dist/index.mjs",
24+
"exports": {
25+
"import": "./dist/index.mjs",
26+
"require": "./dist/index.cjs"
27+
},
2528
"main": "dist/index.mjs",
2629
"types": "dist/index.d.ts",
2730
"files": [
@@ -44,7 +47,7 @@
4447
"@actions/github": "^5.0.1",
4548
"@octokit/openapi-types": "^11.2.0",
4649
"@octokit/plugin-rest-endpoint-methods": "^5.13.0",
47-
"@technote-space/github-action-log-helper": "^0.2.3",
50+
"@technote-space/github-action-log-helper": "^0.2.4",
4851
"shell-escape": "^0.2.0",
4952
"sprintf-js": "^1.1.2"
5053
},
@@ -53,7 +56,7 @@
5356
"@commitlint/config-conventional": "^16.2.1",
5457
"@rollup/plugin-typescript": "^8.3.2",
5558
"@sindresorhus/tsconfig": "^2.0.0",
56-
"@technote-space/github-action-test-helper": "^0.9.4",
59+
"@technote-space/github-action-test-helper": "^0.9.5",
5760
"@types/node": "^17.0.25",
5861
"@types/shell-escape": "^0.2.0",
5962
"@typescript-eslint/eslint-plugin": "^5.20.0",
@@ -62,11 +65,11 @@
6265
"eslint": "^8.13.0",
6366
"eslint-plugin-import": "^2.26.0",
6467
"husky": "^7.0.4",
65-
"lint-staged": "^12.3.8",
68+
"lint-staged": "^12.4.0",
6669
"nock": "^13.2.4",
6770
"rollup": "^2.70.2",
6871
"typescript": "^4.6.3",
69-
"vitest": "^0.9.3"
72+
"vitest": "^0.9.4"
7073
},
7174
"publishConfig": {
7275
"access": "public"

rollup.config.js

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
11
import pluginTypescript from '@rollup/plugin-typescript';
22

3-
export default {
3+
const common = {
44
input: 'src/index.ts',
5-
output: {
6-
file: 'dist/index.mjs',
7-
format: 'es',
8-
},
95
plugins: [
106
pluginTypescript(),
117
],
128
external: ['fs', 'path', '@actions/core', 'child_process', 'shell-escape', '@actions/github'],
139
};
10+
11+
export default [
12+
{
13+
...common,
14+
output: {
15+
file: 'dist/index.cjs',
16+
format: 'cjs',
17+
},
18+
},
19+
{
20+
...common,
21+
output: {
22+
file: 'dist/index.mjs',
23+
format: 'es',
24+
},
25+
},
26+
];

0 commit comments

Comments
 (0)