Skip to content

Commit 74dae6d

Browse files
deyaaeldeenCopilot
andcommitted
fix(core-tracing): restore package.json imports and scripts
The version revert accidentally overwrote the entire package.json, losing the #platform/* imports entries and updated scripts. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent daca040 commit 74dae6d

1 file changed

Lines changed: 15 additions & 11 deletions

File tree

sdk/core/core-tracing/package.json

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,7 @@
3535
"README.md",
3636
"LICENSE"
3737
],
38-
"repository": {
39-
"type": "git",
40-
"url": "git+https://github.com/Azure/azure-sdk-for-js",
41-
"directory": "sdk/core/core-tracing"
42-
},
38+
"repository": "github:Azure/azure-sdk-for-js",
4339
"keywords": [
4440
"azure",
4541
"tracing",
@@ -53,11 +49,11 @@
5349
"engines": {
5450
"node": ">=20.0.0"
5551
},
56-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/core-tracing/README.md",
52+
"homepage": "https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-tracing/README.md",
5753
"sideEffects": false,
5854
"scripts": {
5955
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
60-
"build:samples": "tsc -p tsconfig.samples.json",
56+
"build:samples": "tsc -p config/tsconfig.samples.json",
6157
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"",
6258
"clean": "rimraf --glob dist dist-* temp types *.tgz *.log",
6359
"execute:samples": "echo skipped",
@@ -66,9 +62,9 @@
6662
"lint": "eslint package.json src test",
6763
"lint:fix": "eslint package.json src test --fix --fix-type [problem,suggestion]",
6864
"pack": "pnpm pack 2>&1",
69-
"test": "npm run test:node && npm run test:browser",
70-
"test:browser": "npm run clean && dev-tool run build-package && dev-tool run build-test && dev-tool run test:vitest --no-test-proxy --browser",
71-
"test:node": "dev-tool run build-test --no-browser-test && dev-tool run test:vitest --no-test-proxy",
65+
"test": "tsc -b --noEmit && npm run test:node && npm run test:browser",
66+
"test:browser": "dev-tool run test:vitest --no-test-proxy --browser",
67+
"test:node": "dev-tool run test:vitest --no-test-proxy",
7268
"update-snippets": "dev-tool run update-snippets"
7369
},
7470
"dependencies": {
@@ -101,5 +97,13 @@
10197
},
10298
"migrationDate": "2023-03-08T18:36:03.000Z"
10399
},
104-
"module": "./dist/esm/index.js"
100+
"module": "./dist/esm/index.js",
101+
"imports": {
102+
"#platform/state": {
103+
"browser": "./src/state-web.mts",
104+
"react-native": "./src/state-web.mts",
105+
"require": "./src/state-cjs.ts",
106+
"default": "./src/state.ts"
107+
}
108+
}
105109
}

0 commit comments

Comments
 (0)