Skip to content

Commit 4105f64

Browse files
authored
chore: use ts-node (#249)
1 parent 1c71efd commit 4105f64

File tree

3 files changed

+16
-26
lines changed

3 files changed

+16
-26
lines changed

playground/javascript/node/package.json

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,16 @@
33
"version": "0.0.0",
44
"private": true,
55
"scripts": {
6-
"build": "tsc",
7-
"start:algoliasearch": "yarn build && yarn test:algoliasearch",
8-
"start:abtesting": "yarn build && yarn test:abtesting",
9-
"start:analytics": "yarn build && yarn test:analytics",
10-
"start:insights": "yarn build && yarn test:insights",
11-
"start:personalization": "yarn build && yarn test:personalization",
12-
"start:query-suggestions": "yarn build && yarn test:query-suggestions",
13-
"start:recommend": "yarn build && yarn test:recommend",
14-
"start:search": "yarn build && yarn test:search",
15-
"start:sources": "yarn build && yarn test:sources",
16-
"start:predict": "yarn build && yarn test:predict",
17-
"test:algoliasearch": "node dist/algoliasearch.js",
18-
"test:abtesting": "node dist/analytics.js",
19-
"test:analytics": "node dist/analytics.js",
20-
"test:insights": "node dist/insights.js",
21-
"test:personalization": "node dist/personalization.js",
22-
"test:query-suggestions": "node dist/query-suggestions.js",
23-
"test:recommend": "node dist/recommend.js",
24-
"test:search": "node dist/search.js",
25-
"test:sources": "node dist/sources.js",
26-
"test:predict": "node dist/predict.js"
6+
"start:algoliasearch": "ts-node algoliasearch.ts",
7+
"start:abtesting": "ts-node analytics.ts",
8+
"start:analytics": "ts-node analytics.ts",
9+
"start:insights": "ts-node insights.ts",
10+
"start:personalization": "ts-node personalization.ts",
11+
"start:query-suggestions": "ts-node query-suggestions.ts",
12+
"start:recommend": "ts-node recommend.ts",
13+
"start:search": "ts-node search.ts",
14+
"start:sources": "ts-node sources.ts",
15+
"start:predict": "ts-node predict.ts"
2716
},
2817
"dependencies": {
2918
"@experimental-api-clients-automation/algoliasearch": "0.0.4",
@@ -41,6 +30,7 @@
4130
},
4231
"devDependencies": {
4332
"dotenv": "10.0.0",
33+
"ts-node": "10.5.0",
4434
"typescript": "4.5.4"
4535
},
4636
"engines": {

scripts/package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
"name": "scripts",
33
"version": "1.0.0",
44
"scripts": {
5-
"build": "tsc",
6-
"createReleaseIssue": "yarn build && node dist/scripts/release/create-release-issue.js",
7-
"processRelease": "yarn build && node dist/scripts/release/process-release.js",
8-
"pushGeneratedCode": "yarn build && node dist/scripts/ci/codegen/pushGeneratedCode.js",
9-
"cleanGeneratedBranch": "yarn build && node dist/scripts/ci/codegen/cleanGeneratedBranch.js",
5+
"createReleaseIssue": "ts-node release/create-release-issue.ts",
6+
"processRelease": "ts-node release/process-release.ts",
7+
"pushGeneratedCode": "ts-node ci/codegen/pushGeneratedCode.ts",
8+
"cleanGeneratedBranch": "ts-node ci/codegen/cleanGeneratedBranch.ts",
109
"test": "jest"
1110
},
1211
"devDependencies": {

yarn.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11302,6 +11302,7 @@ __metadata:
1130211302
"@experimental-api-clients-automation/recommend": 0.0.4
1130311303
"@experimental-api-clients-automation/requester-node-http": 0.0.4
1130411304
dotenv: 10.0.0
11305+
ts-node: 10.5.0
1130511306
typescript: 4.5.4
1130611307
languageName: unknown
1130711308
linkType: soft

0 commit comments

Comments
 (0)