Skip to content

Commit 7115fdf

Browse files
committed
rename dist->cjs in Utils
1 parent 72b4335 commit 7115fdf

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/utils/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"engines": {
1010
"node": ">=8"
1111
},
12-
"main": "build/dist/index.js",
12+
"main": "build/cjs/index.js",
1313
"module": "build/esm/index.js",
1414
"types": "build/types/index.d.ts",
1515
"publishConfig": {
@@ -38,7 +38,7 @@
3838
"build:types:watch": "tsc -p tsconfig.types.json --watch",
3939
"build:npm": "ts-node ../../scripts/prepack.ts && npm pack ./build",
4040
"circularDepCheck": "madge --circular src/index.ts",
41-
"clean": "rimraf dist esm build coverage *.js *.js.map *.d.ts",
41+
"clean": "rimraf build coverage *.js *.js.map *.d.ts",
4242
"fix": "run-s fix:eslint fix:prettier",
4343
"fix:eslint": "eslint . --format stylish --fix",
4444
"fix:prettier": "prettier --write \"{src,test,scripts}/**/*.ts\"",

packages/utils/test/types/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const path = require('path');
33

44
const testStrings = ['/// <reference types="node" />'];
55

6-
const paths = [path.join('./build/dist'), path.join('./build/esm')];
6+
const paths = [path.join('./build/cjs'), path.join('./build/esm')];
77

88
paths.forEach(dir => {
99
if (!fs.existsSync(dir)) {

packages/utils/tsconfig.cjs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
"compilerOptions": {
55
"module": "commonjs",
6-
"outDir": "build/dist"
6+
"outDir": "build/cjs"
77
}
88
}

0 commit comments

Comments
 (0)