Skip to content

Commit 9d6edab

Browse files
committed
chore: avoid publishing tests by moving them out of src
Bring the number of published files back to the previous level. I considered using an .npmignore file but I think this solution requires less npm knowledge to understand. I've also renamed `__tests__` to `test` so the layout matches the one in the postcss and webpack repositories.
1 parent bc397ab commit 9d6edab

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
"scripts": {
2020
"prepare": "pnpm run build && tsc",
2121
"build": "jison src/parser.jison -o src/parser.js",
22-
"lint": "eslint src && tsc",
22+
"lint": "eslint . && tsc",
2323
"pretest": "pnpm run build",
24-
"test": "uvu src/__tests__"
24+
"test": "uvu test"
2525
},
2626
"author": "Andy Jansson",
2727
"license": "MIT",

src/__tests__/convertUnit.js renamed to test/convertUnit.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
const { test } = require('uvu');
33
const assert = require('uvu/assert');
44

5-
const convertUnit = require('../lib/convertUnit.js');
5+
const convertUnit = require('../src/lib/convertUnit.js');
66

77
test('valid conversions', () => {
88
const conversions = [

src/__tests__/index.js renamed to test/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const { test } = require('uvu');
33
const assert = require('uvu/assert');
44
const postcss = require('postcss');
55

6-
const reduceCalc = require('../index.js');
6+
const reduceCalc = require('../src/index.js');
77

88
const postcssOpts = { from: undefined };
99

0 commit comments

Comments
 (0)