Skip to content

Commit

Permalink
Merge pull request #494 from pmcelhaney/shebangs-shebangs
Browse files Browse the repository at this point in the history
fix an issue where ts-node was not being used
  • Loading branch information
pmcelhaney committed Aug 11, 2023
2 parents 1e84459 + d975833 commit a830149
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/grumpy-peaches-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"counterfact": patch
---

fix an issue where ts-node was not being used, which basically broke everything
1 change: 1 addition & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"use strict";

const rules = {
"n/shebang": "off",
"putout/putout": "off",
"import/prefer-default-export": "off",
"@typescript-eslint/naming-convention": "off",
Expand Down
2 changes: 1 addition & 1 deletion bin/counterfact.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env node
#!/usr/bin/env ts-node

import nodePath from "node:path";

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"go:petstore": "yarn counterfact https://petstore3.swagger.io/api/v3/openapi.json out",
"go:petstore2": "yarn counterfact https://petstore.swagger.io/v2/swagger.json out",
"go:example": "yarn counterfact ./openapi-example.yaml out --open",
"counterfact": "ts-node --esm --transpileOnly ./bin/counterfact.js"
"counterfact": "./bin/counterfact.js"
},
"devDependencies": {
"@changesets/cli": "2.26.2",
Expand Down

0 comments on commit a830149

Please sign in to comment.