Skip to content

Commit a3a8cf4

Browse files
committed
Bundle the code
1 parent 5e21546 commit a3a8cf4

File tree

87 files changed

+817
-280
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+817
-280
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
node-version: ${{ matrix.node }}
6060

6161
- name: Test
62-
run: pnpm exec vitest --coverage
62+
run: pnpm test:all --coverage
6363

6464
- name: Submit coverage
6565
uses: coverallsapp/github-action@master

bin/concurrently.ts renamed to bin/index.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ import process from 'node:process';
44
import yargs from 'yargs';
55
import { hideBin } from 'yargs/helpers';
66

7-
import { assertDeprecated } from '../src/assert.js';
8-
import * as defaults from '../src/defaults.js';
9-
import { concurrently } from '../src/index.js';
10-
import { castArray } from '../src/utils.js';
11-
import { readPackageJson } from './read-package-json.js';
7+
import { assertDeprecated } from '../lib/assert.js';
8+
import * as defaults from '../lib/defaults.js';
9+
import { concurrently } from '../lib/index.js';
10+
import { castArray } from '../lib/utils.js';
11+
import { version } from '../package.json' with { type: 'json' };
1212

13-
const version = String(readPackageJson().version);
1413
const epilogue = `For documentation and more examples, visit:\nhttps://github.com/open-cli-tools/concurrently/tree/v${version}/docs`;
1514

1615
// Clean-up arguments (yargs expects only the arguments after the program name)

bin/read-package-json.ts

Lines changed: 0 additions & 17 deletions
This file was deleted.

eslint.config.js

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,19 @@ export default defineConfig(
2121
},
2222
},
2323
eslint.configs.recommended,
24-
tseslint.configs.recommended,
24+
tseslint.configs.recommendedTypeChecked,
25+
{
26+
languageOptions: {
27+
parserOptions: {
28+
projectService: true,
29+
tsconfigRootDir: import.meta.dirname,
30+
},
31+
},
32+
},
33+
{
34+
files: ['**/*.js', '**/*.spec.ts', '**/__fixtures__/**/*', 'tests/**/*'],
35+
extends: [tseslint.configs.disableTypeChecked],
36+
},
2537
{
2638
rules: {
2739
curly: 'error',
@@ -36,6 +48,19 @@ export default defineConfig(
3648
varsIgnorePattern: '^_',
3749
},
3850
],
51+
'@typescript-eslint/prefer-promise-reject-errors': 'off',
52+
},
53+
},
54+
{
55+
files: ['**/*.ts'],
56+
ignores: ['**/*.spec.ts', '**/__fixtures__/**/*', 'tests/**/*'],
57+
rules: {
58+
'@typescript-eslint/consistent-type-imports': 'error',
59+
'@typescript-eslint/no-import-type-side-effects': 'error',
60+
'@typescript-eslint/consistent-type-exports': [
61+
'error',
62+
{ fixMixedExportsWithInlineTypeSpecifier: true },
63+
],
3964
},
4065
},
4166
{ files: ['**/__fixtures__/**/*.{js,ts}'], rules: { 'no-console': 'off' } },
@@ -49,7 +74,7 @@ export default defineConfig(
4974
'simple-import-sort/exports': 'error',
5075
'import/first': 'error',
5176
'import/newline-after-import': 'error',
52-
'import/no-duplicates': 'error',
77+
'import/no-duplicates': ['error', { 'prefer-inline': true }],
5378
},
5479
},
5580
{

index.d.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

index.js

Lines changed: 0 additions & 8 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)