Skip to content

Commit

Permalink
renamed lib to src for core-tracing (#7508)
Browse files Browse the repository at this point in the history
  • Loading branch information
KarishmaGhiya authored Feb 24, 2020
1 parent 2e45647 commit 0453ec6
Show file tree
Hide file tree
Showing 21 changed files with 8 additions and 38 deletions.
27 changes: 0 additions & 27 deletions sdk/core/core-tracing/ThirdPartyNotices.txt

This file was deleted.

2 changes: 1 addition & 1 deletion sdk/core/core-tracing/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "types/lib/index.d.ts",
"mainEntryPointFilePath": "types/src/index.d.ts",
"docModel": {
"enabled": false
},
Expand Down
13 changes: 5 additions & 8 deletions sdk/core/core-tracing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"description": "Provides low-level interfaces and helper methods for tracing in Azure SDK",
"sdk-type": "client",
"main": "dist/index.js",
"module": "dist-esm/lib/index.js",
"module": "dist-esm/src/index.js",
"browser": {
"./dist-esm/lib/utils/global.js": "./dist-esm/lib/utils/global.browser.js"
"./dist-esm/src/utils/global.js": "./dist-esm/src/utils/global.browser.js"
},
"types": "types/core-tracing.d.ts",
"scripts": {
Expand All @@ -25,7 +25,7 @@
"integration-test:node": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"lint:fix": "eslint package.json tsconfig.json \"src/**/*.ts\" \"test/**/*.ts\" --fix --fix-type [problem,suggestion]",
"lint": "eslint package.json tsconfig.json lib --ext .ts -f html -o template-lintReport.html || exit 0",
"lint": "eslint package.json tsconfig.json src --ext .ts -f html -o template-lintReport.html || exit 0",
"pack": "npm pack 2>&1",
"prebuild": "npm run clean",
"test:browser": "npm run build:test && npm run unit-test:browser && npm run integration-test:browser",
Expand All @@ -37,11 +37,8 @@
},
"files": [
"dist/",
"dist-esm/lib/",
"src/",
"lib/",
"types/core-tracing.d.ts",
"ThirdPartyNotices.txt"
"dist-esm/src/",
"types/core-tracing.d.ts"
],
"repository": "github:Azure/azure-sdk-for-js",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion sdk/core/core-tracing/rollup.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import viz from "rollup-plugin-visualizer";

const pkg = require("./package.json");
const depNames = Object.keys(pkg.dependencies);
const input = "dist-esm/lib/index.js";
const input = "dist-esm/src/index.js";
const production = process.env.NODE_ENV === "production";

export function nodeConfig(test = false) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion sdk/core/core-tracing/test/traceParentHeader.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT License.

import * as assert from "assert";
import { extractSpanContextFromTraceParentHeader, getTraceParentHeader } from "../lib";
import { extractSpanContextFromTraceParentHeader, getTraceParentHeader } from "../src";
import { TraceFlags, SpanContext } from "@opentelemetry/types";

describe("traceParentHeader", () => {
Expand Down

0 comments on commit 0453ec6

Please sign in to comment.