Skip to content

Commit

Permalink
createing js version
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbarbour committed Mar 4, 2024
1 parent 94fa3de commit 436d7d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"license": "Apache-2.0",
"version": "1.0.0",
"bin": {
"schema-api-ts": "src/cli.ts"
"schema-api-ts": "dist/esm/cli.js"
},
"types": "dist/esm/index.d.ts",
"exports": {
Expand All @@ -24,11 +24,11 @@
"dist"
],
"scripts": {
"prebuild": "node --loader ts-node/esm --no-warnings ./src/cli.ts generate -h $(pwd)/test/schema-example.ts v=1.0.0",
"build:esm": "tsc --project tsconfig.json && echo '{\"type\": \"module\"}' > dist/esm/package.json",
"build:cjs": "tsc --project tsconfig.cjs.json && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json",
"build": "npm run build:esm && npm run build:cjs",
"test": "jest --ci --runInBand --coverage --reporters=default --reporters=jest-junit --passWithNoTests",
"build": "npm run build:esm && npm run build:cjs && chmod +x ./dist/esm/cli.js",
"generate": "./dist/esm/cli.js generate -h $(pwd)/test/schema-example.ts v=1.0.0",
"test": "npm run generate && jest --ci --runInBand --coverage --reporters=default --reporters=jest-junit --passWithNoTests",
"lint": "eslint **/*.ts"
},
"eslintConfig": {
Expand Down
1 change: 1 addition & 0 deletions tsconfig.cjs.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
"outDir": "./dist/cjs",
"module": "commonjs",
},
"exclude": ["src/cli.ts"]
}

0 comments on commit 436d7d5

Please sign in to comment.