Skip to content

Commit

Permalink
Merge pull request #206 from technote-space/release/next-v2.1.3
Browse files Browse the repository at this point in the history
release: v2.1.4
  • Loading branch information
technote-space authored Jun 1, 2022
2 parents ccc0dae + f286952 commit a814e2e
Show file tree
Hide file tree
Showing 7 changed files with 418 additions and 389 deletions.
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@technote-space/github-action-config-helper",
"version": "2.1.3",
"version": "2.1.4",
"description": "Helper for GitHub Action to manage config.",
"keywords": [
"github",
Expand Down Expand Up @@ -40,26 +40,26 @@
"update": "npm_config_yes=true npx npm-check-updates -u --timeout 100000 && yarn install && yarn upgrade && yarn audit"
},
"dependencies": {
"@actions/github": "^5.0.1",
"@actions/github": "^5.0.3",
"@octokit/plugin-rest-endpoint-methods": "^5.13.0",
"@technote-space/github-action-helper": "^5.3.5",
"@technote-space/github-action-helper": "^5.3.6",
"js-yaml": "^4.1.0"
},
"devDependencies": {
"@rollup/plugin-typescript": "^8.3.2",
"@sindresorhus/tsconfig": "^2.0.0",
"@technote-space/github-action-test-helper": "^0.9.5",
"@sindresorhus/tsconfig": "^3.0.1",
"@technote-space/github-action-test-helper": "^0.9.7",
"@types/js-yaml": "^4.0.5",
"@types/node": "^17.0.25",
"@typescript-eslint/eslint-plugin": "^5.20.0",
"@typescript-eslint/parser": "^5.20.0",
"c8": "^7.11.2",
"eslint": "^8.13.0",
"@types/node": "^17.0.38",
"@typescript-eslint/eslint-plugin": "^5.27.0",
"@typescript-eslint/parser": "^5.27.0",
"c8": "^7.11.3",
"eslint": "^8.16.0",
"eslint-plugin-import": "^2.26.0",
"nock": "^13.2.4",
"rollup": "^2.70.2",
"typescript": "^4.6.3",
"vitest": "^0.9.4"
"rollup": "^2.75.4",
"typescript": "^4.7.2",
"vitest": "^0.13.1"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion src/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { expect, it } from 'vitest';
import { getConfig, parseConfig } from '.';
import { getConfig, parseConfig } from './index.js';

it('helper methods should be imported', () => {
expect(getConfig).not.toBeFalsy();
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { getConfig } from './utils';
export { parseConfig } from './misc';
export { getConfig } from './utils.js';
export { parseConfig } from './misc.js';
3 changes: 1 addition & 2 deletions src/misc.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/* eslint-disable no-magic-numbers */
import { encodeContent, spyOnStdout, stdoutCalledWith, getLogStdout } from '@technote-space/github-action-test-helper';
import { describe, expect, it } from 'vitest';
import { parseConfig } from '../src';
import { isYaml, parseYamlConfig, parseJsonConfig } from './misc';
import { isYaml, parseConfig, parseYamlConfig, parseJsonConfig } from './misc.js';

describe('isYaml', () => {
it('should return true', () => {
Expand Down
2 changes: 1 addition & 1 deletion src/utils.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { resolve } from 'path';
import { disableNetConnect, getConfigFixture, getContext, getOctokit } from '@technote-space/github-action-test-helper';
import nock from 'nock';
import { describe, expect, it } from 'vitest';
import { getConfig } from './utils';
import { getConfig } from './utils.js';

const fixturesDir = resolve(__dirname, 'fixtures');

Expand Down
8 changes: 4 additions & 4 deletions src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { Context } from '@actions/github/lib/context';
import type { Octokit } from '@technote-space/github-action-helper/dist/types';
import type { Context } from '@actions/github/lib/context.js';
import type { Octokit } from '@technote-space/github-action-helper';
import { join } from 'path';
import { NOT_FOUND_STATUS } from './constant';
import { parseConfig } from './misc';
import { NOT_FOUND_STATUS } from './constant.js';
import { parseConfig } from './misc.js';

// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const getConfig = async(fileName: string, octokit: Octokit, context: Context, options: { configPath?: string; ref?: string } = {}): Promise<{ [key: string]: any } | false> | never => {
Expand Down
Loading

0 comments on commit a814e2e

Please sign in to comment.