Skip to content

Commit 98c9c89

Browse files
authored
Upgrade to new node SDK (#299)
1 parent 8477826 commit 98c9c89

File tree

14 files changed

+310
-875
lines changed

14 files changed

+310
-875
lines changed

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"dependencies": {
2121
"@npmcli/ci-detect": "^2.0.0",
2222
"@oclif/core": "^1.7",
23+
"@segment/analytics-node": "^1.0.0-beta.26",
2324
"ajv": "^8.11.0",
24-
"analytics-node": "segmentio/analytics-node",
2525
"chalk": "^4",
2626
"debug": "^4.3.4",
2727
"figures": "^3",
@@ -44,7 +44,6 @@
4444
"@oclif/test": "^2.1",
4545
"@segment/analytics-next": "^1.51.6",
4646
"@segment/analytics-react-native": "^2.2.1",
47-
"@types/analytics-node": "^3.1.9",
4847
"@types/chai": "^4",
4948
"@types/debug": "^4.1.7",
5049
"@types/got": "^9.6.12",
@@ -94,14 +93,16 @@
9493
}
9594
},
9695
"scripts": {
97-
"build": "shx rm -rf dist && tsc && copyfiles --up 1 \"src/**/*.hbs\" dist",
96+
"build": "shx rm -rf dist && npm run build:typedef-test-artifacts && tsc && copyfiles --up 1 \"src/**/*.hbs\" dist && npm run build:telemetry",
97+
"build:telemetry": "./bin/run -m=prod",
98+
"build:typedef-test-artifacts": "ts-node src/__tests__/ts-typedef-tests/run-build.ts",
9899
"lint": "eslint",
99100
"lint:fix": "eslint --fix",
100101
"postpack": "shx rm -f oclif.manifest.json",
101102
"posttest": "yarn lint",
102103
"prepack": "yarn build && oclif manifest && oclif readme",
103104
"test": "yarn test:typedef && jest --runInBand",
104-
"test:typedef": "npx ts-node src/__tests__/ts-typedef-tests/run.ts",
105+
"test:typedef": "npm run build:typedef-test-artifacts && ts-node src/__tests__/ts-typedef-tests/run-test.ts",
105106
"version": "oclif readme && git add README.md"
106107
},
107108
"engines": {

0 commit comments

Comments
 (0)