Skip to content

Commit

Permalink
Remove unused commonjs output file
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Jun 20, 2023
1 parent 30d038e commit 23e4090
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 92 deletions.
83 changes: 0 additions & 83 deletions dist/run-scripts.umd.cjs

This file was deleted.

11 changes: 4 additions & 7 deletions package.json
Expand Up @@ -5,15 +5,14 @@
"license": "MIT",
"type": "module",
"module": "dist/run-scripts.js",
"main": "dist/run-scripts.umd.cjs",
"main": "dist/run-scripts.js",
"types": "dist/run-scripts.d.ts",
"files": [
"dist"
],
"exports": {
".": {
"import": "./dist/run-scripts.js",
"require": "./dist/run-scripts.umd.cjs"
"import": "./dist/run-scripts.js"
},
"./": "./dist/"
},
Expand Down Expand Up @@ -98,8 +97,6 @@
"step:02": "jshint . --exclude-path .gitignore",
"step:03": "eslint --max-warnings 0 . --ext .ts",
"step:10": "tsc",
"step:11": "tsc --module UMD --outDir build/umd",
"step:12": "copy-file build/umd/run-scripts.js build/run-scripts.umd.cjs",
"step:20": "add-dist-header build dist",
"pretest": "npm-run-all step:*",
"test": "mocha spec/*.spec.js --timeout 7000",
Expand All @@ -114,8 +111,8 @@
"devDependencies": {
"@types/fancy-log": "~2.0",
"@types/node": "~20.3",
"@typescript-eslint/eslint-plugin": "~5.59",
"@typescript-eslint/parser": "~5.59",
"@typescript-eslint/eslint-plugin": "~5.60",
"@typescript-eslint/parser": "~5.60",
"add-dist-header": "~1.0",
"assert-deep-strict-equal": "~1.0",
"copy-file-util": "~1.0",
Expand Down
3 changes: 1 addition & 2 deletions spec/mocha.spec.js
Expand Up @@ -20,7 +20,6 @@ describe('The "dist" folder', () => {
const expected = [
'dist/run-scripts.d.ts',
'dist/run-scripts.js',
'dist/run-scripts.umd.cjs',
];
assertDeepStrictEqual(actual, expected);
});
Expand Down Expand Up @@ -78,7 +77,7 @@ describe('Executing the CLI', () => {
const run = (posix) => {
const name = Object.keys(pkg.bin).sort()[0];
const command = process.platform === 'win32' ? posix.replaceAll('\\ ', '" "') : posix;
execSync(command.replace(name, 'node bin/cli.js'), { stdio: 'inherit' });
return execSync(command.replace(name, 'node bin/cli.js'), { stdio: 'inherit' });
};

it('correctly runs parallel commands', () => {
Expand Down

0 comments on commit 23e4090

Please sign in to comment.