Skip to content

Commit

Permalink
chore: use ts-node (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts authored Mar 15, 2022
1 parent 1c71efd commit 4105f64
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 26 deletions.
32 changes: 11 additions & 21 deletions playground/javascript/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,16 @@
"version": "0.0.0",
"private": true,
"scripts": {
"build": "tsc",
"start:algoliasearch": "yarn build && yarn test:algoliasearch",
"start:abtesting": "yarn build && yarn test:abtesting",
"start:analytics": "yarn build && yarn test:analytics",
"start:insights": "yarn build && yarn test:insights",
"start:personalization": "yarn build && yarn test:personalization",
"start:query-suggestions": "yarn build && yarn test:query-suggestions",
"start:recommend": "yarn build && yarn test:recommend",
"start:search": "yarn build && yarn test:search",
"start:sources": "yarn build && yarn test:sources",
"start:predict": "yarn build && yarn test:predict",
"test:algoliasearch": "node dist/algoliasearch.js",
"test:abtesting": "node dist/analytics.js",
"test:analytics": "node dist/analytics.js",
"test:insights": "node dist/insights.js",
"test:personalization": "node dist/personalization.js",
"test:query-suggestions": "node dist/query-suggestions.js",
"test:recommend": "node dist/recommend.js",
"test:search": "node dist/search.js",
"test:sources": "node dist/sources.js",
"test:predict": "node dist/predict.js"
"start:algoliasearch": "ts-node algoliasearch.ts",
"start:abtesting": "ts-node analytics.ts",
"start:analytics": "ts-node analytics.ts",
"start:insights": "ts-node insights.ts",
"start:personalization": "ts-node personalization.ts",
"start:query-suggestions": "ts-node query-suggestions.ts",
"start:recommend": "ts-node recommend.ts",
"start:search": "ts-node search.ts",
"start:sources": "ts-node sources.ts",
"start:predict": "ts-node predict.ts"
},
"dependencies": {
"@experimental-api-clients-automation/algoliasearch": "0.0.4",
Expand All @@ -41,6 +30,7 @@
},
"devDependencies": {
"dotenv": "10.0.0",
"ts-node": "10.5.0",
"typescript": "4.5.4"
},
"engines": {
Expand Down
9 changes: 4 additions & 5 deletions scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
"name": "scripts",
"version": "1.0.0",
"scripts": {
"build": "tsc",
"createReleaseIssue": "yarn build && node dist/scripts/release/create-release-issue.js",
"processRelease": "yarn build && node dist/scripts/release/process-release.js",
"pushGeneratedCode": "yarn build && node dist/scripts/ci/codegen/pushGeneratedCode.js",
"cleanGeneratedBranch": "yarn build && node dist/scripts/ci/codegen/cleanGeneratedBranch.js",
"createReleaseIssue": "ts-node release/create-release-issue.ts",
"processRelease": "ts-node release/process-release.ts",
"pushGeneratedCode": "ts-node ci/codegen/pushGeneratedCode.ts",
"cleanGeneratedBranch": "ts-node ci/codegen/cleanGeneratedBranch.ts",
"test": "jest"
},
"devDependencies": {
Expand Down
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11302,6 +11302,7 @@ __metadata:
"@experimental-api-clients-automation/recommend": 0.0.4
"@experimental-api-clients-automation/requester-node-http": 0.0.4
dotenv: 10.0.0
ts-node: 10.5.0
typescript: 4.5.4
languageName: unknown
linkType: soft
Expand Down

0 comments on commit 4105f64

Please sign in to comment.