Skip to content

Commit

Permalink
refactor: tsup build
Browse files Browse the repository at this point in the history
  • Loading branch information
Cherry committed Sep 14, 2024
1 parent 9aaa5e4 commit 1aa4d2c
Show file tree
Hide file tree
Showing 12 changed files with 2,552 additions and 1,490 deletions.
5 changes: 5 additions & 0 deletions .changeset/clean-ducks-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@microlabs/otel-cf-workers': patch
---

chore: refactor to modern build tooling
10 changes: 10 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# https://editorconfig.org
root = true

[*]
end_of_line = lf
indent_style = tab

[*.{yml,yaml}]
indent_style = space
indent_size = 2
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
4 changes: 1 addition & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v3
with:
version: 8
- uses: pnpm/action-setup@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/pullrequests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v3
with:
version: 8
- uses: pnpm/action-setup@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v3
with:
version: 8
- uses: pnpm/action-setup@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @microlabs/otel-cf-workers

## 1.0.0-rc.48

### Patch Changes

- d0dcc83: Fix importing issues. Fixes #162

## 1.0.0-rc.46

### Patch Changes
Expand Down
46 changes: 22 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,57 +1,55 @@
{
"name": "@microlabs/otel-cf-workers",
"version": "1.0.0-rc.46",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"types": "dist/esm/index.d.ts",
"version": "1.0.0-rc.48",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.mts",
"exports": {
".": {
"import": {
"types": "./dist/esm/index.d.ts",
"default": "./dist/esm/index.js"
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/cjs/index.d.ts",
"default": "./dist/cjs/index.js"
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"scripts": {
"clean": "rimraf ./dist versions.json",
"format": "prettier --ignore-unknown --write .",
"build-esm": "tsc",
"build-cjs": "tsc -p tsconfig-cjs.json",
"fix-dist": "echo '{\"type\": \"module\"}' > dist/esm/package.json && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json",
"build": "run-s -l cs-version build-esm build-cjs fix-dist",
"build-src": "tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
"build": "run-s -l cs-version build-src",
"cs-version": "changeset version && pnpm version --json > versions.json",
"cs-publish": "changeset publish",
"release": "run-s -l clean cs-version build cs-publish",
"check": "run-s -l check:*",
"check:format": "prettier . --check --ignore-unknown",
"check:type-esm": "tsc --noEmit",
"check:type-cjs": "tsc --noEmit -p tsconfig-cjs.json",
"check:types": "tsc --noEmit",
"watch": "tsc --watch",
"prepare": "husky"
},
"homepage": "https://github.com/evanderkoogh/otel-cf-workers#readme",
"dependencies": {
"@opentelemetry/core": "^1.25.1",
"@opentelemetry/core": "^1.26.0",
"@opentelemetry/exporter-trace-otlp-http": "^0.52.1",
"@opentelemetry/otlp-exporter-base": "^0.52.1",
"@opentelemetry/otlp-transformer": "^0.52.1",
"@opentelemetry/resources": "^1.25.1",
"@opentelemetry/sdk-trace-base": "^1.25.1",
"@opentelemetry/semantic-conventions": "^1.25.1"
"@opentelemetry/resources": "^1.26.0",
"@opentelemetry/sdk-trace-base": "^1.26.0",
"@opentelemetry/semantic-conventions": "^1.27.0"
},
"devDependencies": {
"@changesets/cli": "^2.27.7",
"@cloudflare/workers-types": "^4.20240806.0",
"husky": "^9.1.4",
"lint-staged": "^15.2.8",
"@changesets/cli": "^2.27.8",
"@cloudflare/workers-types": "^4.20240909.0",
"husky": "^9.1.6",
"lint-staged": "^15.2.10",
"npm-run-all": "^4.1.5",
"prettier": "^3.3.3",
"rimraf": "^5.0.10",
"typescript": "^5.5.4"
"tsup": "^8.2.4",
"typescript": "^5.6.2"
},
"peerDependencies": {
"@opentelemetry/api": "~1.9.0"
Expand All @@ -63,5 +61,5 @@
"lint-staged": {
"*": "prettier --ignore-unknown --write"
},
"packageManager": "pnpm@8.15.6+sha512.77b89e9be77a2b06ad8f403a19cae5e22976f61023f98ad323d5c30194958ebc02ee0a6ae5d13ee454f6134e4e8caf29a05f0b1a0e1d2b17bca6b6a1f1159f86"
"packageManager": "pnpm@9.10.0"
}
Loading

0 comments on commit 1aa4d2c

Please sign in to comment.