Skip to content

Commit 1086e06

Browse files
authoredJan 15, 2023
test: Add test bin to package bin (#4018)
1 parent e010bec commit 1086e06

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env node
2-
/* eslint-disable node/shebang */
32

43
const { run } = require('./dist/index.cjs');
54
run();

‎test-packages/cspell-lib/test-cspell-lib-rollup/package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
"name": "test-cspell-lib",
33
"version": "6.18.1",
44
"description": "Pure testing package for cspell-lib.",
5-
"bin": "bin.mjs",
5+
"bin": {
6+
"mjs": "bin.mjs",
7+
"csj": "bin.cjs"
8+
},
69
"type": "module",
710
"private": true,
811
"scripts": {

‎test-packages/cspell-pipe/test-cspell-pipe-rollup/bin.cjs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env node
2-
/* eslint-disable node/shebang */
32

43
const assert = require('assert');
54
const { sumValues } = require('./dist/index.cjs');

‎test-packages/cspell-pipe/test-cspell-pipe-rollup/package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
"version": "6.18.1",
44
"description": "Pure testing package for @cspell/cspell-pipe. It purpose is to verify @cspell/cspell-pipe dependencies.",
55
"private": true,
6-
"bin": "./bin.mjs",
6+
"bin": {
7+
"mjs": "bin.mjs",
8+
"csj": "bin.cjs"
9+
},
710
"browser": "./dist/browser.js",
811
"main": "./dist/index.cjs",
912
"module": "./dist/index.mjs",

‎test-packages/cspell-types/test-cspell-types-rollup/bin.cjs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env node
2-
/* eslint-disable node/shebang */
32

43
const assert = require('assert');
54
const { gatherIssues } = require('./dist/index.cjs');

‎test-packages/cspell-types/test-cspell-types-rollup/package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
"version": "6.18.1",
44
"description": "Pure testing package for @cspell/cspell-pipe. It purpose is to verify @cspell/cspell-pipe dependencies.",
55
"private": true,
6-
"bin": "./bin.mjs",
6+
"bin": {
7+
"mjs": "bin.mjs",
8+
"csj": "bin.cjs"
9+
},
710
"browser": "./dist/browser.js",
811
"main": "./dist/index.cjs",
912
"module": "./dist/index.mjs",

0 commit comments

Comments
 (0)
Please sign in to comment.