Skip to content

Commit

Permalink
fix: invalid exports for type declarations
Browse files Browse the repository at this point in the history
[bump]
  • Loading branch information
fineshop committed Jan 22, 2024
1 parent ec08e40 commit 1218209
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 21 deletions.
6 changes: 6 additions & 0 deletions .changeset/tasty-ads-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@cf-wasm/photon": patch
"@cf-wasm/png": patch
---

This patch fixes invalid exports for type declarations
9 changes: 8 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,12 @@
},
"typescript.tsdk": "node_modules/typescript/lib",
"editor.formatOnSave": true,
"cSpell.words": ["fineshopdesign", "Kumar", "O'Dwyer", "tsbuildinfo"]
"cSpell.words": [
"copyfiles",
"fineshopdesign",
"Kumar",
"O'Dwyer",
"postbuild",
"tsbuildinfo"
]
}
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
# Cloudflare WASM Modules

A collection of wasm packages the works on Cloudflare workers
A collection of wasm packages those works on Cloudflare workers.

## Packages

This monorepo contains the following packages:

### [@cf-wasm/photon](https://www.npmjs.com/package/@cf-wasm/photon)

A high-performance image processing library.
Powered by [@silvia-odwyer/photon](https://www.npmjs.com/package/@silvia-odwyer/photon).

### [@cf-wasm/png](https://www.npmjs.com/package/@cf-wasm/png)

A simple png encoder/decoder.
2 changes: 1 addition & 1 deletion packages/photon/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const path = require("path");
/** @type {import("eslint-define-config").ESLintConfig} */
const eslintConfig = {
root: true,
extends: ["../../.eslintrc.cjs"],
extends: [path.resolve(__dirname, "../../.eslintrc.cjs")],
ignorePatterns: [
// production
"dist/",
Expand Down
16 changes: 8 additions & 8 deletions packages/photon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,43 +16,43 @@
"./next": {
"default": {
"import": "./dist/edge/next/index.js",
"types": "./dist/edge/next/index.d.js"
"types": "./dist/edge/next/index.d.ts"
}
},
"./node": {
"default": {
"require": "./dist/node/cjs/index.js",
"import": "./dist/node/cjs/index.js",
"types": "./dist/node/cjs/index.d.js"
"types": "./dist/node/cjs/index.d.ts"
}
},
"./workers": {
"default": {
"import": "./dist/edge/workers/index.js",
"types": "./dist/edge/workers/index.d.js"
"types": "./dist/edge/workers/index.d.ts"
}
},
".": {
"default": {
"import": "./dist/edge/workers/index.js",
"types": "./dist/edge/workers/index.d.js",
"types": "./dist/edge/workers/index.d.ts",
"default": "./dist/edge/workers/index.js"
}
}
},
"typesVersions": {
"*": {
"next": [
"./dist/edge/next/index.d.js"
"./dist/edge/next/index.d.ts"
],
"node": [
"./dist/node/cjs/index.d.js"
"./dist/node/cjs/index.d.ts"
],
"workers": [
"./dist/edge/workers/index.d.js"
"./dist/edge/workers/index.d.ts"
],
"*": [
"./dist/edge/workers/index.d.js"
"./dist/edge/workers/index.d.ts"
]
}
},
Expand Down
2 changes: 1 addition & 1 deletion packages/png/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const path = require("path");
/** @type {import("eslint-define-config").ESLintConfig} */
const eslintConfig = {
root: true,
extends: ["../../.eslintrc.cjs"],
extends: [path.resolve(__dirname, "../../.eslintrc.cjs")],
ignorePatterns: [
// production
"dist/",
Expand Down
2 changes: 1 addition & 1 deletion packages/png/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# png

A simple wasm png encoder/decoder module for Cloudflare Workers, Next.js and Node using wasm.
A simple wasm png encoder/decoder module for Cloudflare Workers, Next.js and Node.

## Installation

Expand Down
16 changes: 8 additions & 8 deletions packages/png/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,43 +13,43 @@
"./next": {
"default": {
"import": "./dist/edge/next/index.js",
"types": "./dist/edge/next/index.d.js"
"types": "./dist/edge/next/index.d.ts"
}
},
"./node": {
"default": {
"require": "./dist/node/cjs/index.js",
"import": "./dist/node/cjs/index.js",
"types": "./dist/node/cjs/index.d.js"
"types": "./dist/node/cjs/index.d.ts"
}
},
"./workers": {
"default": {
"import": "./dist/edge/workers/index.js",
"types": "./dist/edge/workers/index.d.js"
"types": "./dist/edge/workers/index.d.ts"
}
},
".": {
"default": {
"import": "./dist/edge/workers/index.js",
"types": "./dist/edge/workers/index.d.js",
"types": "./dist/edge/workers/index.d.ts",
"default": "./dist/edge/workers/index.js"
}
}
},
"typesVersions": {
"*": {
"next": [
"./dist/edge/next/index.d.js"
"./dist/edge/next/index.d.ts"
],
"node": [
"./dist/node/cjs/index.d.js"
"./dist/node/cjs/index.d.ts"
],
"workers": [
"./dist/edge/workers/index.d.js"
"./dist/edge/workers/index.d.ts"
],
"*": [
"./dist/edge/workers/index.d.js"
"./dist/edge/workers/index.d.ts"
]
}
},
Expand Down

0 comments on commit 1218209

Please sign in to comment.