Skip to content

Commit

Permalink
fix: files not being published on release
Browse files Browse the repository at this point in the history
  • Loading branch information
theogravity committed Apr 8, 2024
1 parent 09f84cc commit 9211034
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 9 deletions.
30 changes: 30 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Contributing

# Install

```bash
# Install pnpm
corepack enable
corepack prepare pnpm@latest --activate

# Install dependencies
pnpm i

# Run tests
pnpm test

# Build
pnpm build

# Lint
pnpm lint
```

# Submitting PRs

## General rules

- Make sure to add tests for any code written. They are written using [`vitest`](https://vitest.dev/). The tests should pass before submitting a PR.
- Make sure to run the linter before submitting a PR. The linter is run using `pnpm lint`. It uses
[biome.js](https://biomejs.dev/) for linting.
- The PR must pass the CI checks before it can be merged. This means it should pass linting and tests.
8 changes: 8 additions & 0 deletions packages/datadog-transport-common/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
pnpm-lock.yaml
biome.json
src
tsconfig.json
tsup.config.json
.turbo
test
8 changes: 5 additions & 3 deletions packages/datadog-transport-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "3.0.0",
"description": "A library for sending batches of JSON log data to datadog",
"files": [
"dist/*"
"dist"
],
"types": "dist/index.d.ts",
"main": "dist/index.js",
Expand All @@ -22,7 +22,8 @@
"format": "biome format src --write && biome format test --write",
"lint": "biome lint src && biome lint test",
"lint:check": "biome check --apply-unsafe src && check --apply-unsafe test",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"prepublishOnly": "pnpm run build"
},
"publishConfig": {
"access": "public"
Expand All @@ -36,7 +37,8 @@
"homepage": "https://github.com/theogravity/datadog-transports/tree/main/packages/datadog-transport-common#readme",
"repository": {
"type": "git",
"url": "[email protected]:theogravity/datadog-transports.git"
"url": "[email protected]:theogravity/datadog-transports.git",
"directory": "packages/datadog-transport-common"
},
"bugs": {
"url": "https://github.com/theogravity/datadog-transports/issues"
Expand Down
8 changes: 8 additions & 0 deletions packages/electron-log-transport-datadog/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
pnpm-lock.yaml
biome.json
src
tsconfig.json
tsup.config.json
.turbo
test
8 changes: 5 additions & 3 deletions packages/electron-log-transport-datadog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "3.0.0",
"description": "Send logs to Datadog from electron-log in Electron.",
"files": [
"dist/*"
"dist"
],
"types": "dist/index.d.ts",
"main": "dist/index.js",
Expand All @@ -22,7 +22,8 @@
"format": "biome format src --write && biome format test --write",
"lint": "biome lint src && biome lint test",
"lint:check": "biome check --apply-unsafe src && check --apply-unsafe test",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"prepublishOnly": "pnpm run build"
},
"publishConfig": {
"access": "public"
Expand All @@ -41,7 +42,8 @@
"homepage": "https://github.com/theogravity/datadog-transports/tree/main/packages/electron-log-transport-datadog#readme",
"repository": {
"type": "git",
"url": "[email protected]:theogravity/datadog-transports.git"
"url": "[email protected]:theogravity/datadog-transports.git",
"directory": "packages/electron-log-transport-datadog"
},
"bugs": {
"url": "https://github.com/theogravity/datadog-transports/issues"
Expand Down
8 changes: 8 additions & 0 deletions packages/pino-datadog-transport/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules
pnpm-lock.yaml
biome.json
src
tsconfig.json
tsup.config.json
.turbo
test
8 changes: 5 additions & 3 deletions packages/pino-datadog-transport/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "3.0.1",
"description": "A pino v7+ transport for sending logs to Datadog",
"files": [
"dist/*"
"dist"
],
"types": "dist/index.d.ts",
"main": "dist/index.js",
Expand All @@ -21,11 +21,13 @@
"format": "biome format src --write && biome format test --write",
"lint": "biome lint src && biome lint test",
"lint:check": "biome check --apply-unsafe src && check --apply-unsafe test",
"typecheck": "tsc --noEmit"
"typecheck": "tsc --noEmit",
"prepublishOnly": "pnpm run build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/theogravity/datadog-transports.git"
"url": "git+https://github.com/theogravity/datadog-transports.git",
"directory": "packages/pino-datadog-transport"
},
"author": "Theo Gravity <[email protected]>",
"license": "MIT",
Expand Down

0 comments on commit 9211034

Please sign in to comment.