Skip to content

Commit 9f56933

Browse files
authored
Rename src to lib (#572)
1 parent 2535876 commit 9f56933

Some content is hidden

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

69 files changed

+18
-34
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { map } from 'rxjs/operators';
1212
import stringArgv from 'string-argv';
1313
import { afterAll, beforeAll, describe, expect, it } from 'vitest';
1414

15-
import { escapeRegExp } from '../src/utils.js';
15+
import { escapeRegExp } from '../lib/utils.js';
1616

1717
const isWindows = process.platform === 'win32';
1818
const createKillMessage = (prefix: string, signal: 'SIGTERM' | 'SIGINT' | string) => {
@@ -30,7 +30,7 @@ beforeAll(async () => {
3030
// Build 'concurrently' and store it in a temporary directory
3131
tmpDir = fs.mkdtempSync(path.join(os.tmpdir(), 'concurrently-'));
3232
await build({
33-
entryPoints: [path.join(__dirname, 'concurrently.ts')],
33+
entryPoints: [path.join(__dirname, 'index.ts')],
3434
platform: 'node',
3535
bundle: true,
3636
// it doesn't seem like esbuild is able to change a CJS module to ESM, so target CJS instead.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ 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';
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';
1111
import { readPackageJson } from './read-package-json.js';
1212

1313
const version = String(readPackageJson().version);

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.
File renamed without changes.

0 commit comments

Comments
 (0)