Skip to content

Commit a1fe64c

Browse files
authored
Fix eslint, update turborepo (#542)
1 parent ae1c43f commit a1fe64c

File tree

5 files changed

+14
-4
lines changed

5 files changed

+14
-4
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"test": "turbo run test",
1414
"lint": "yarn constraints && turbo run lint",
1515
"build": "turbo run build",
16+
"build:packages": "turbo run build:packages",
1617
"dev": "yarn browser exec make dev",
1718
"postinstall": "husky install",
1819
"changeset": "changeset",

packages/browser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"pkg": "yarn tsc -p tsconfig.build.json",
3636
"cjs": "yarn tsc -p tsconfig.build.json --outDir ./dist/cjs --module commonjs",
3737
"clean": "rm -rf dist",
38-
"lint": "yarn tsc --noEmit && yarn eslint '**/*.{js,jsx,ts,tsx}'",
38+
"lint": "yarn concurrently 'yarn:eslint .' 'yarn:tsc --noEmit'",
3939
"test": "yarn jest"
4040
},
4141
"size-limit": [

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"sideEffects": false,
1717
"scripts": {
1818
"test": "yarn jest",
19-
"lint": "yarn concurrently 'yarn:eslint' 'yarn:tsc --noEmit'",
19+
"lint": "yarn concurrently 'yarn:eslint .' 'yarn:tsc --noEmit'",
2020
"build": "rm -rf dist && yarn concurrently 'yarn:build:*'",
2121
"build:esm": "yarn tsc -p tsconfig.build.json",
2222
"build:cjs": "yarn tsc -p tsconfig.build.json --outDir ./dist/cjs --module commonjs",

packages/node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
"scripts": {
1919
"test": "yarn jest",
20-
"lint": "yarn concurrently 'yarn:eslint' 'yarn:tsc --noEmit'",
20+
"lint": "yarn concurrently 'yarn:eslint .' 'yarn:tsc --noEmit'",
2121
"build": "rm -rf dist && yarn concurrently 'yarn:build:*'",
2222
"build:cjs": "yarn tsc -p tsconfig.build.json --outDir ./dist/cjs --module commonjs",
2323
"build:esm": "yarn tsc -p tsconfig.build.json --outDir ./dist/esm --module esnext",

turbo.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,23 @@
55
"dependsOn": ["^build"],
66
"outputs": ["dist/**", ".next/**"]
77
},
8+
"build:packages": {
9+
"dependsOn": [
10+
"@segment/analytics-next#build",
11+
"@segment/analytics-node#build",
12+
"@segment/analytics-core#build"
13+
],
14+
"outputs": ["dist/**"]
15+
},
816
"test": {
917
"dependsOn": ["build"],
1018
"outputs": [],
1119
"inputs": ["src/**", "test*/**"]
1220
},
1321
"lint": {
22+
"dependsOn": ["build:packages"],
1423
"outputs": [],
15-
"inputs": ["**/*.ts?x", "**/*.js", "**/*.json"]
24+
"inputs": ["**/*.ts", "**/*.tsx", "**/*.js"]
1625
}
1726
}
1827
}

0 commit comments

Comments
 (0)