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 11b0591
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 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
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2627,7 +2627,7 @@ __metadata:
typescript: "npm:~5.4.5"
yargs: "npm:^17.7.2"
bin:
interactors: ./dist/cjs/index.js
interactors: ./dist/index.js
languageName: unknown
linkType: soft

Expand Down

0 comments on commit 11b0591

Please sign in to comment.