Skip to content

Commit

Permalink
Merge pull request #5 from sxwei123/develop
Browse files Browse the repository at this point in the history
Improve project structure
  • Loading branch information
sxwei123 committed Dec 28, 2020
2 parents 9a8ce8c + bef8d48 commit 00ceea1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,20 @@ jobs:
release:
name: Build and run test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup node.js
- name: Setup node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: "10.x"
node-version: ${{ matrix.node-version }}
registry-url: "https://registry.npmjs.org"
- run: yarn install
- run: yarn test
env:
LOG_ANALYTICS_WORKSPACE_ID: ${{secrets.LOG_ANALYTICS_WORKSPACE_ID}}
LOG_ANALYTICS_AGENT_KEY: ${{secrets.LOG_ANALYTICS_AGENT_KEY}}
NODE_ENV: test
2 changes: 1 addition & 1 deletion src/__tests__/index.test.ts → __tests__/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DataCollectorClient } from "..";
import { DataCollectorClient } from "../src";

describe("The data collector client", () => {
const { LOG_ANALYTICS_AGENT_KEY, LOG_ANALYTICS_WORKSPACE_ID } = process.env;
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"name": "azure-log-analytics-data-collector-client",
"version": "2.0.0",
"version": "2.1.0",
"description": "Node.js wrapper for Azure Log Analytics data collector API",
"main": "dist/index.js",
"main": "./dist/index.js",
"exports": "./dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist/**/*"
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"rootDir": "src",
"outDir": "dist"
// "types": ["node"]
"outDir": "dist",
"removeComments": true
},
"include": ["src"],
"exclude": ["node_modules", "dist", "**/__tests__/*"]
Expand Down

0 comments on commit 00ceea1

Please sign in to comment.