Skip to content

Commit

Permalink
Build only cjs bin
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitriy Lazarev <w@kich.dev>
  • Loading branch information
wKich committed May 24, 2024
1 parent 1339f35 commit 63f083b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"name": "@interactors/cli",
"version": "1.0.0-rc1.6",
"description": "Interactors CLI tool",
"main": "dist/cjs/index.js",
"browser": "dist/esm/index.js",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"repository": "https://github.com/thefrontside/interactors.git",
"homepage": "https://frontside.com/interactors",
Expand All @@ -15,17 +14,15 @@
"README.md"
],
"bin": {
"interactors": "./dist/cjs/index.js"
"interactors": "./dist/index.js"
},
"scripts": {
"clean": "rm -rf dist *.tsbuildinfo",
"lint": "eslint \"{src,test}/**/*.ts\"",
"check:types": "tsc --noEmit",
"test:unit": "tsx --test --test-reporter spec --no-deprecation test/**/*.test.ts",
"test": "yarn test:unit",
"prepack": "tsc --build ./tsconfig.build.json && yarn prepack:es2015 && yarn prepack:commonjs",
"prepack:es2015": "tsc --project ./tsconfig.build.json --outdir dist/esm --module es2015",
"prepack:commonjs": "tsc --project ./tsconfig.build.json --outdir dist/cjs --module commonjs"
"prepack": "tsc --build ./tsconfig.build.json && tsc --project ./tsconfig.build.json"
},
"dependencies": {
"@interactors/core": "1.0.0-rc1.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../tsconfig-base.json",
"compilerOptions": {
"outDir": "dist/cjs",
"outDir": "dist",
"rootDir": "./src",
"declarationDir": "dist"
},
Expand Down

0 comments on commit 63f083b

Please sign in to comment.