Skip to content

Commit

Permalink
Switch from ts-node to tsx (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
psirenny authored Dec 13, 2023
1 parent 09ee347 commit 483d38c
Show file tree
Hide file tree
Showing 45 changed files with 290 additions and 283 deletions.
5 changes: 5 additions & 0 deletions .changeset/slow-boxes-grin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@spear-ai/ruff-config": patch
---

Fixed sync-version script by switching from `ts-node` to `tsx`.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/arg-npm-4.1.3-1748b966a8-969b491082.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added .yarn/cache/fsevents-patch-6b67494872-10.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/yn-npm-3.1.1-8ad4259784-2c487b0e14.zip
Binary file not shown.
Binary file modified .yarn/install-state.gz
Binary file not shown.
8 changes: 3 additions & 5 deletions packages/ruff-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spear-ai/ruff-config",
"version": "2.0.0",
"version": "0.0.0",
"description": "Spear AI Ruff config",
"author": {
"name": "Spear AI",
Expand All @@ -9,8 +9,6 @@
},
"type": "module",
"devDependencies": {
"@swc/core": "^1.3.100",
"@swc/helpers": "^0.5.3",
"@types/eslint": "8.44.8",
"@types/regenerator-runtime": "^0",
"eslint": "8.55.0",
Expand All @@ -21,8 +19,8 @@
"regenerator-runtime": "^0.14.0",
"replace-in-file": "^7.0.2",
"tailwindcss": "3.3.6",
"ts-node": "10.9.2",
"tsup": "8.0.1",
"tsx": "4.6.2",
"typescript": "5.3.3"
},
"license": "MIT",
Expand All @@ -44,6 +42,6 @@
"ruff-format:fix": "poetry run ruff format .",
"ruff-lint:check": "poetry run ruff check .",
"ruff-lint:fix": "poetry run ruff check --fix .",
"sync-version": "ts-node sync-version.ts"
"sync-version": "tsx sync-version"
}
}
2 changes: 1 addition & 1 deletion packages/ruff-config/sync-version.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable regexp/require-unicode-sets-regexp */
/* eslint-disable import/no-extraneous-dependencies */
/* eslint-disable regexp/require-unicode-regexp */
/* eslint-disable regexp/require-unicode-sets-regexp */

import replaceInFile from "replace-in-file";
import package_ from "./package.json" assert { type: "json" };
Expand Down
6 changes: 1 addition & 5 deletions packages/ruff-config/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,5 @@
"**/*.ts",
"**/*.tsx",
"types"
],
"ts-node": {
"esm": true,
"swc": true
}
]
}
Loading

0 comments on commit 483d38c

Please sign in to comment.