mirror of
https://github.com/dorny/paths-filter.git
synced 2026-06-29 04:30:43 +00:00
Bump @actions/core from 1.10.1 to 3.0.0 and @actions/exec from 1.1.1 to 3.0.0
Both packages moved to ESM-only in v3, so this migrates the project from CommonJS to ESM: adds "type": "module" to package.json, switches tsconfig to module/moduleResolution "nodenext", adds .js extensions to all relative imports, and reconfigures Jest for ESM support.
This commit is contained in:
parent
ecb2e254c2
commit
5e1b966447
13 changed files with 35929 additions and 8725 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import {csvEscape} from '../src/list-format/csv-escape'
|
||||
import {csvEscape} from '../src/list-format/csv-escape.js'
|
||||
|
||||
describe('csvEscape() backslash escapes every character except subset of definitely safe characters', () => {
|
||||
test('simple filename should not be modified', () => {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import {Filter, FilterConfig, PredicateQuantifier} from '../src/filter'
|
||||
import {File, ChangeStatus} from '../src/file'
|
||||
import {Filter, FilterConfig, PredicateQuantifier} from '../src/filter.js'
|
||||
import {File, ChangeStatus} from '../src/file.js'
|
||||
|
||||
describe('yaml filter parsing tests', () => {
|
||||
test('throws if yaml is not a dictionary', () => {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import * as git from '../src/git'
|
||||
import {ChangeStatus} from '../src/file'
|
||||
import * as git from '../src/git.js'
|
||||
import {ChangeStatus} from '../src/file.js'
|
||||
|
||||
describe('parsing output of the git diff command', () => {
|
||||
test('parseGitDiffOutput returns files with correct change status', async () => {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import {backslashEscape, shellEscape} from '../src/list-format/shell-escape'
|
||||
import {backslashEscape, shellEscape} from '../src/list-format/shell-escape.js'
|
||||
|
||||
describe('escape() backslash escapes every character except subset of definitely safe characters', () => {
|
||||
test('simple filename should not be modified', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue