Skip to content

Commit

Permalink
chore: move from ts-node to tsx (#2192)
Browse files Browse the repository at this point in the history
it just works :woah:
  • Loading branch information
vladfrangu authored Nov 25, 2023
1 parent e340e2b commit f405260
Show file tree
Hide file tree
Showing 22 changed files with 274 additions and 154 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"proxy": "^1.0.2",
"puppeteer": "21.5.2",
"rimraf": "^5.0.0",
"ts-node": "^10.9.1",
"tsx": "^4.4.0",
"turbo": "1.10.16",
"typescript": "^5.2.2",
"vite-tsconfig-paths": "^4.2.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/basic-crawler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"build": "yarn clean && yarn compile && yarn copy",
"clean": "rimraf ./dist",
"compile": "tsc -p tsconfig.build.json && gen-esm-wrapper ./dist/index.js ./dist/index.mjs",
"copy": "ts-node -T ../../scripts/copy.ts"
"copy": "tsx ../../scripts/copy.ts"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/browser-crawler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"build": "yarn clean && yarn compile && yarn copy",
"clean": "rimraf ./dist",
"compile": "tsc -p tsconfig.build.json && gen-esm-wrapper ./dist/index.js ./dist/index.mjs",
"copy": "ts-node -T ../../scripts/copy.ts"
"copy": "tsx ../../scripts/copy.ts"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/browser-pool/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"build": "yarn clean && yarn compile && node copy-definitions.mjs && yarn copy",
"clean": "rimraf ./dist",
"compile": "tsc -p tsconfig.build.json && gen-esm-wrapper ./dist/index.js ./dist/index.mjs",
"copy": "ts-node -T ../../scripts/copy.ts"
"copy": "tsx ../../scripts/copy.ts"
},
"dependencies": {
"@apify/log": "^2.4.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/cheerio-crawler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"build": "yarn clean && yarn compile && yarn copy",
"clean": "rimraf ./dist",
"compile": "tsc -p tsconfig.build.json && gen-esm-wrapper ./dist/index.js ./dist/index.mjs",
"copy": "ts-node -T ../../scripts/copy.ts"
"copy": "tsx ../../scripts/copy.ts"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"build": "yarn clean && yarn compile && yarn copy",
"clean": "rimraf ./dist",
"compile": "tsc -p tsconfig.build.json",
"copy": "ts-node -T ../../scripts/copy.ts"
"copy": "tsx ../../scripts/copy.ts"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"build": "yarn clean && yarn compile && yarn copy",
"clean": "rimraf ./dist",
"compile": "tsc -p tsconfig.build.json && gen-esm-wrapper ./dist/index.js ./dist/index.mjs",
"copy": "ts-node -T ../../scripts/copy.ts"
"copy": "tsx ../../scripts/copy.ts"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/crawlee/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"build": "yarn clean && yarn compile && yarn copy",
"clean": "rimraf ./dist",
"compile": "tsc -p tsconfig.build.json && gen-esm-wrapper ./dist/index.js ./dist/index.mjs",
"copy": "ts-node -T ../../scripts/copy.ts"
"copy": "tsx ../../scripts/copy.ts"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/http-crawler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"build": "yarn clean && yarn compile && yarn copy",
"clean": "rimraf ./dist",
"compile": "tsc -p tsconfig.build.json && gen-esm-wrapper ./dist/index.js ./dist/index.mjs",
"copy": "ts-node -T ../../scripts/copy.ts"
"copy": "tsx ../../scripts/copy.ts"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/jsdom-crawler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"build": "yarn clean && yarn compile && yarn copy",
"clean": "rimraf ./dist",
"compile": "tsc -p tsconfig.build.json && gen-esm-wrapper ./dist/index.js ./dist/index.mjs",
"copy": "ts-node -T ../../scripts/copy.ts"
"copy": "tsx ../../scripts/copy.ts"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/linkedom-crawler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"build": "yarn clean && yarn compile && yarn copy",
"clean": "rimraf ./dist",
"compile": "tsc -p tsconfig.build.json && gen-esm-wrapper ./dist/index.js ./dist/index.mjs",
"copy": "ts-node -T ../../scripts/copy.ts"
"copy": "tsx ../../scripts/copy.ts"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/memory-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"build": "yarn clean && yarn compile && yarn copy",
"clean": "rimraf ./dist",
"compile": "tsc -p tsconfig.build.json && gen-esm-wrapper ./dist/index.js ./dist/index.mjs",
"copy": "ts-node -T ../../scripts/copy.ts"
"copy": "tsx ../../scripts/copy.ts"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/playwright-crawler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"build": "yarn clean && yarn compile && yarn copy",
"clean": "rimraf ./dist",
"compile": "tsc -p tsconfig.build.json && gen-esm-wrapper ./dist/index.js ./dist/index.mjs",
"copy": "ts-node -T ../../scripts/copy.ts"
"copy": "tsx ../../scripts/copy.ts"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/puppeteer-crawler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"build": "yarn clean && yarn compile && yarn copy",
"clean": "rimraf ./dist",
"compile": "tsc -p tsconfig.build.json && gen-esm-wrapper ./dist/index.js ./dist/index.mjs",
"copy": "ts-node -T ../../scripts/copy.ts"
"copy": "tsx ../../scripts/copy.ts"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/templates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"build": "yarn clean && yarn validate && yarn compile && yarn copy",
"clean": "rimraf ./dist",
"compile": "tsc -p tsconfig.build.json && gen-esm-wrapper ./dist/index.js ./dist/index.mjs",
"copy": "ts-node -T ../../scripts/copy.ts",
"copy": "tsx ../../scripts/copy.ts",
"validate": "node ./scripts/validate-manifest.mjs"
},
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions packages/templates/templates/cheerio-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
},
"devDependencies": {
"@apify/tsconfig": "^0.1.0",
"ts-node": "^10.8.0",
"tsx": "^4.4.0",
"typescript": "~5.3.0",
"@types/node": "^20.0.0"
},
"scripts": {
"start": "npm run start:dev",
"start:prod": "node dist/main.js",
"start:dev": "node --no-warnings=ExperimentalWarning --loader ts-node/esm/transpile-only src/main.ts",
"start:dev": "tsx src/main.ts",
"build": "tsc",
"test": "echo \"Error: oops, the actor has no tests yet, sad!\" && exit 1"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/templates/templates/getting-started-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
},
"devDependencies": {
"@apify/tsconfig": "^0.1.0",
"ts-node": "^10.8.0",
"tsx": "^4.4.0",
"typescript": "~5.3.0",
"@types/node": "^20.0.0"
},
"scripts": {
"start": "npm run start:dev",
"start:prod": "node dist/main.js",
"start:dev": "node --no-warnings=ExperimentalWarning --loader ts-node/esm/transpile-only src/main.ts",
"start:dev": "tsx src/main.ts",
"build": "tsc",
"test": "echo \"Error: oops, the actor has no tests yet, sad!\" && exit 1"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/templates/templates/playwright-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
},
"devDependencies": {
"@apify/tsconfig": "^0.1.0",
"ts-node": "^10.8.0",
"tsx": "^4.4.0",
"typescript": "~5.3.0",
"@types/node": "^20.0.0"
},
"scripts": {
"start": "npm run start:dev",
"start:prod": "node dist/main.js",
"start:dev": "node --no-warnings=ExperimentalWarning --loader ts-node/esm/transpile-only src/main.ts",
"start:dev": "tsx src/main.ts",
"build": "tsc",
"test": "echo \"Error: oops, the actor has no tests yet, sad!\" && exit 1",
"postinstall": "npx crawlee install-playwright-browsers"
Expand Down
4 changes: 2 additions & 2 deletions packages/templates/templates/puppeteer-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
},
"devDependencies": {
"@apify/tsconfig": "^0.1.0",
"ts-node": "^10.8.0",
"tsx": "^4.4.0",
"typescript": "~5.3.0",
"@types/node": "^20.0.0"
},
"scripts": {
"start": "npm run start:dev",
"start:prod": "node dist/main.js",
"start:dev": "node --no-warnings=ExperimentalWarning --loader ts-node/esm/transpile-only src/main.ts",
"start:dev": "tsx src/main.ts",
"build": "tsc",
"test": "echo \"Error: oops, the actor has no tests yet, sad!\" && exit 1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"build": "yarn clean && yarn compile && yarn copy",
"clean": "rimraf ./dist",
"compile": "tsc -p tsconfig.build.json && gen-esm-wrapper ./dist/index.js ./dist/index.mjs",
"copy": "ts-node -T ../../scripts/copy.ts"
"copy": "tsx ../../scripts/copy.ts"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"build": "yarn clean && yarn compile && yarn copy",
"clean": "rimraf ./dist",
"compile": "tsc -p tsconfig.build.json && gen-esm-wrapper ./dist/index.js ./dist/index.mjs",
"copy": "ts-node -T ../../scripts/copy.ts"
"copy": "tsx ../../scripts/copy.ts"
},
"dependencies": {
"@apify/log": "^2.4.0",
Expand Down
Loading

0 comments on commit f405260

Please sign in to comment.