mirror of
https://github.com/dorny/paths-filter.git
synced 2025-06-07 16:49:03 +00:00
Add import extensions
This commit is contained in:
parent
c4f6f6794a
commit
61068b04d2
7 changed files with 14 additions and 14 deletions
|
@ -1,6 +1,6 @@
|
|||
import {describe, expect, test} from 'vitest'
|
||||
|
||||
import {csvEscape} from '../src/list-format/csv-escape'
|
||||
import {csvEscape} from '../src/list-format/csv-escape.ts'
|
||||
|
||||
describe('csvEscape() backslash escapes every character except subset of definitely safe characters', () => {
|
||||
test('simple filename should not be modified', () => {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import {describe, expect, test} from 'vitest'
|
||||
|
||||
import {File, ChangeStatus} from '../src/file'
|
||||
import {Filter} from '../src/filter'
|
||||
import {File, ChangeStatus} from '../src/file.ts'
|
||||
import {Filter} from '../src/filter.ts'
|
||||
|
||||
describe('yaml filter parsing tests', () => {
|
||||
test('throws if yaml is not a dictionary', () => {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import {describe, expect, test} from 'vitest'
|
||||
|
||||
import {ChangeStatus} from '../src/file'
|
||||
import * as git from '../src/git'
|
||||
import {ChangeStatus} from '../src/file.ts'
|
||||
import * as git from '../src/git.ts'
|
||||
|
||||
describe('parsing output of the git diff command', () => {
|
||||
test('parseGitDiffOutput returns files with correct change status', () => {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import {describe, expect, test} from 'vitest'
|
||||
|
||||
import {backslashEscape, shellEscape} from '../src/list-format/shell-escape'
|
||||
import {backslashEscape, shellEscape} from '../src/list-format/shell-escape.ts'
|
||||
|
||||
describe('escape() backslash escapes every character except subset of definitely safe characters', () => {
|
||||
test('simple filename should not be modified', () => {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import * as jsyaml from 'js-yaml'
|
||||
import micromatch from 'micromatch'
|
||||
|
||||
import {File} from './file'
|
||||
import {File} from './file.ts'
|
||||
|
||||
// Type definition of object we expect to load from YAML
|
||||
type FilterYaml = Record<string, FilterItemYaml>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import * as core from '@actions/core'
|
||||
|
||||
import exec from './exec'
|
||||
import {File, ChangeStatus} from './file'
|
||||
import exec from './exec.ts'
|
||||
import {File, ChangeStatus} from './file.ts'
|
||||
|
||||
export const NULL_SHA = '0000000000000000000000000000000000000000'
|
||||
export const HEAD = 'HEAD'
|
||||
|
|
10
src/main.ts
10
src/main.ts
|
@ -4,11 +4,11 @@ import * as core from '@actions/core'
|
|||
import * as github from '@actions/github'
|
||||
import {PullRequest, PushEvent} from '@octokit/webhooks-types'
|
||||
|
||||
import {File, ChangeStatus} from './file'
|
||||
import {Filter, FilterResults} from './filter'
|
||||
import * as git from './git'
|
||||
import {csvEscape} from './list-format/csv-escape'
|
||||
import {backslashEscape, shellEscape} from './list-format/shell-escape'
|
||||
import {File, ChangeStatus} from './file.ts'
|
||||
import {Filter, FilterResults} from './filter.ts'
|
||||
import * as git from './git.ts'
|
||||
import {csvEscape} from './list-format/csv-escape.ts'
|
||||
import {backslashEscape, shellEscape} from './list-format/shell-escape.ts'
|
||||
|
||||
type ExportFormat = 'none' | 'csv' | 'json' | 'shell' | 'escape'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue