Skip to content

Commit b6d6c3d

Browse files
committed
Configure turbo, other
1 parent 19f8472 commit b6d6c3d

File tree

11 files changed

+25
-169
lines changed

11 files changed

+25
-169
lines changed

package.json

+11-12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"name": "root",
32
"private": true,
43
"license": "MIT",
54
"repository": {
@@ -12,23 +11,23 @@
1211
],
1312
"type": "module",
1413
"scripts": {
15-
"playground:geosearch": "turbo run dev --filter=@meilisearch/geo-playground --parallel",
16-
"playground:vanilla": "turbo run dev --filter=@meilisearch/vanilla-playground --parallel",
17-
"playground:vue3": "turbo run dev --filter=@meilisearch/vue3-ts-playground --parallel",
18-
"playground:react": "turbo run dev --filter=@meilisearch/react-playground --parallel",
19-
"playground:local-react": "turbo run dev --filter=@meilisearch/local-react-playground --parallel",
20-
"playground:node": "turbo run dev --filter=@meilisearch/node-playground --parallel",
21-
"playground:autocomplete": "turbo run dev --filter=@meilisearch/autocomplete-playground --parallel",
22-
"test:e2e": "turbo run test:e2e",
23-
"test:e2e:watch": "turbo run test:e2e:watch",
14+
"playground:geosearch": "turbo dev --filter=@meilisearch/geo-playground --parallel",
15+
"playground:vanilla": "turbo dev --filter=@meilisearch/vanilla-playground --parallel",
16+
"playground:vue3": "turbo dev --filter=@meilisearch/vue3-ts-playground --parallel",
17+
"playground:react": "turbo dev --filter=@meilisearch/react-playground --parallel",
18+
"playground:local-react": "turbo dev --filter=@meilisearch/local-react-playground --parallel",
19+
"playground:node": "turbo dev --filter=@meilisearch/node-playground --parallel",
20+
"playground:autocomplete": "turbo dev --filter=@meilisearch/autocomplete-playground --parallel",
21+
"test:e2e": "turbo test:e2e",
22+
"test:e2e:watch": "turbo test:e2e:watch",
2423
"lint": "turbo lint",
2524
"lint:fix": "turbo lint:fix",
26-
"build": "turbo run build",
25+
"build": "turbo build",
2726
"test": "yarn build && vitest run",
2827
"test:watch": "yarn build && vitest",
2928
"instant-meilisearch:test:watch": "vitest --project \"@meilisearch/instant-meilisearch\"",
3029
"autocomplete:test:watch": "vitest --project \"@meilisearch/autocomplete-client\"",
31-
"test:types": "turbo run test:types",
30+
"test:types": "turbo test:types",
3231
"version-packages": "changeset version && turbo version",
3332
"release": "yarn build && changeset publish"
3433
},

packages/autocomplete-client/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"build": "vite build && tsc -p tsconfig.json",
1111
"lint": "eslint --ext .js,.ts,.tsx .",
1212
"lint:fix": "eslint --ext .js,.ts,.tsx . --fix",
13-
"version": "node scripts/update_version.js"
13+
"version": "node scripts/update_version.cjs"
1414
},
1515
"type": "module",
1616
"types": "./dist/types/index.d.ts",

packages/autocomplete-client/scripts/build.js

-65
This file was deleted.

packages/autocomplete-client/tsconfig.json

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
4-
"composite": true,
5-
"rootDir": "./src",
64
"outDir": "./dist/esm",
75
"declarationDir": "dist/types"
86
},

packages/instant-meilisearch/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"build": "vite build && tsc -p tsconfig.json",
2828
"lint": "eslint --ext .js,.ts,.tsx .",
2929
"lint:fix": "eslint --ext .js,.ts,.tsx . --fix",
30-
"version": "node scripts/update_version.js"
30+
"version": "node scripts/update_version.cjs"
3131
},
3232
"type": "module",
3333
"types": "./dist/types/index.d.ts",

packages/instant-meilisearch/scripts/build.js

-65
This file was deleted.

packages/instant-meilisearch/tsconfig.json

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
{
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
4-
"composite": true,
5-
"rootDir": "./src",
64
"outDir": "./dist/esm",
75
"declarationDir": "dist/types"
86
},

tsconfig.json

+1-8
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,5 @@
1212
"resolveJsonModule": true,
1313
"strict": true,
1414
"verbatimModuleSyntax": true
15-
},
16-
// TODO: Will have to build before running tests, so make sure there's a build that doesn't build playgroudns too
17-
// will also have to build before type checking? This won't work smoothly. autocomplete depends on the other, so will have to build the other first always
18-
"references": [
19-
{ "path": "./packages/autocomplete-client/tsconfig.json" },
20-
{ "path": "./packages/instant-meilisearch/tsconfig.json" }
21-
],
22-
"files": []
15+
}
2316
}

turbo.json

+11-13
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,32 @@
11
{
2-
"$schema": "https://turborepo.org/schema.json",
2+
"$schema": "https://turbo.build/schema.json",
33
"tasks": {
44
"build": {
55
"dependsOn": ["^build"],
6-
"outputs": ["dist/**", "build/**"]
6+
"outputs": ["dist/**"]
77
},
88
"lint": {},
99
"lint:fix": {},
1010
"dev": {
11-
"cache": false
11+
"cache": false,
12+
"dependsOn": ["build"]
1213
},
1314
"test": {
14-
"dependsOn": ["^build"],
15-
"outputs": ["dist/**", "build/**"]
15+
"dependsOn": ["build"]
1616
},
1717
"test:watch": {
18-
"dependsOn": ["^build"],
19-
"outputs": ["dist/**", "build/**"]
18+
"cache": false,
19+
"dependsOn": ["build"]
2020
},
2121
"test:e2e": {
22-
"dependsOn": ["^build"],
23-
"outputs": ["dist/**", "build/**"]
22+
"dependsOn": ["build"]
2423
},
2524
"test:e2e:watch": {
26-
"dependsOn": ["^build"],
27-
"outputs": ["dist/**", "build/**"]
25+
"cache": false,
26+
"dependsOn": ["build"]
2827
},
2928
"test:types": {
30-
"dependsOn": ["^build"],
31-
"outputs": ["dist/**", "build/**"]
29+
"dependsOn": ["build"]
3230
},
3331
"version": {}
3432
}

0 commit comments

Comments
 (0)