Replace -- with --- in npm commands

Resolves https://github.com/iptv-org/epg/issues/2354

Details: https://github.com/npm/cli/issues/3136
This commit is contained in:
freearhey 2024-12-15 17:32:49 +03:00
parent 9f89cd2160
commit 28c8e3d74f
203 changed files with 607 additions and 607 deletions

View file

@ -24,7 +24,7 @@ describe('channels:editor', () => {
}
try {
const cmd = `${ENV_VAR} npm run channels:editor -- tests/__data__/output/channels.xml`
const cmd = `${ENV_VAR} npm run channels:editor --- tests/__data__/output/channels.xml`
execSync(cmd, { encoding: 'utf8' })
} catch (error) {
expect((error as ExecError).status).toBe(1)

View file

@ -9,7 +9,7 @@ describe('channels:lint', () => {
it('will show a message if the file contains a syntax error', () => {
try {
const cmd =
'npm run channels:lint -- --channels=tests/__data__/input/channels-lint/channels-lint.channels.xml'
'npm run channels:lint --- --channels=tests/__data__/input/channels-lint/channels-lint.channels.xml'
execSync(cmd, { encoding: 'utf8' })
process.exit(1)
} catch (error) {

View file

@ -13,7 +13,7 @@ beforeEach(() => {
describe('channels:parse', () => {
it('can parse channels', () => {
const cmd =
'npm run channels:parse -- --config=tests/__data__/input/channels-parse/channels-parse.config.js --output=tests/__data__/output/channels.xml'
'npm run channels:parse --- --config=tests/__data__/input/channels-parse/channels-parse.config.js --output=tests/__data__/output/channels.xml'
execSync(cmd, { encoding: 'utf8' })
expect(content('tests/__data__/output/channels.xml')).toEqual(

View file

@ -14,7 +14,7 @@ if (os.platform() === 'win32') {
describe('channels:validate', () => {
it('will show a message if the file contains a duplicate', () => {
try {
const cmd = `${ENV_VAR} npm run channels:validate -- --channels=tests/__data__/input/channels-validate/duplicate.channels.xml`
const cmd = `${ENV_VAR} npm run channels:validate --- --channels=tests/__data__/input/channels-validate/duplicate.channels.xml`
execSync(cmd, { encoding: 'utf8' })
process.exit(1)
} catch (error) {
@ -39,7 +39,7 @@ tests/__data__/input/channels-validate/duplicate.channels.xml
it('will show a message if the file contains a channel with wrong xmltv_id', () => {
try {
const cmd = `${ENV_VAR} npm run channels:validate -- --channels=tests/__data__/input/channels-validate/wrong_xmltv_id.channels.xml`
const cmd = `${ENV_VAR} npm run channels:validate --- --channels=tests/__data__/input/channels-validate/wrong_xmltv_id.channels.xml`
execSync(cmd, { encoding: 'utf8' })
process.exit(1)
} catch (error) {