Skip to content

Commit

Permalink
Remove dependencies from published package
Browse files Browse the repository at this point in the history
  • Loading branch information
ivancuric committed Aug 1, 2023
1 parent 57d690b commit bb9ffff
Show file tree
Hide file tree
Showing 14 changed files with 80 additions and 9 deletions.
7 changes: 7 additions & 0 deletions apps/example-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# example-react

## 0.0.3

### Patch Changes

- Updated dependencies
- @microblink/capture@1.0.4

## 0.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/example-react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "example-react",
"private": true,
"version": "0.0.2",
"version": "0.0.3",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
7 changes: 7 additions & 0 deletions apps/example-solidjs-dist/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# example-solidjs-dist

## 0.0.3

### Patch Changes

- Updated dependencies
- @microblink/capture@1.0.4

## 0.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/example-solidjs-dist/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "example-solidjs-dist",
"version": "0.0.2",
"version": "0.0.3",
"private": true,
"type": "module",
"description": "This example runs uses the @microblink/capture bundled module",
Expand Down
7 changes: 7 additions & 0 deletions apps/example-vanilla-ts-headless/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# example-vanilla-ts-headless

## 0.0.3

### Patch Changes

- Updated dependencies
- @microblink/capture@1.0.4

## 0.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/example-vanilla-ts-headless/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "example-vanilla-ts-headless",
"private": true,
"version": "0.0.2",
"version": "0.0.3",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
7 changes: 7 additions & 0 deletions apps/example-vanilla-ts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# example-vanilla-ts

## 0.0.3

### Patch Changes

- Updated dependencies
- @microblink/capture@1.0.4

## 0.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/example-vanilla-ts/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "example-vanilla-ts",
"private": true,
"version": "0.0.2",
"version": "0.0.3",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
6 changes: 3 additions & 3 deletions packages/capture-worker/src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ let analyzer: Analyzer;
// TODO: Need to hash filenames in /resources/ for cache busting

/**
* @param licenceKey The SDK licence key
* @param userId A random ID tied to the user session
* @param settings `AnalyzerSettings` you want to override
* @returns a Comlink-proxified instance of the Wasm module
*/
async function loadWasm() {
Expand Down Expand Up @@ -96,6 +93,9 @@ function createAnalyzer() {
return proxy(analyzer);
}

/**
* Separate function so that we can clear the `imageData` buffer
*/
function analyze(image: Parameters<Analyzer["analyze"]>[0]) {
// TODO: check what happens if it gets deleted

Expand Down
2 changes: 1 addition & 1 deletion packages/capture/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
build
dist
types
public
public
6 changes: 6 additions & 0 deletions packages/capture/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @microblink/capture

## 1.0.4

### Patch Changes

- Fixes a critical issue where the published npm package was dependent on private packages

## 1.0.3

### Patch Changes
Expand Down
32 changes: 32 additions & 0 deletions packages/capture/npm-publish/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "@microblink/capture",
"description": "Wasm prebuilts + TS types",
"homepage": "https://microblink.com/",
"repository": "github:BlinkID/capture-browser",
"version": "1.0.4",
"type": "module",
"files": [
"dist",
"types"
],
"main": "./dist/capture.umd.cjs",
"module": "./dist/capture.js",
"types": "./types/index.d.ts",
"exports": {
".": {
"import": {
"types": "./types/index.d.ts",
"default": "./dist/capture.js"
},
"require": {
"types": "./types/index.d.cts",
"default": "./dist/capture.umd.cjs"
}
},
"./style.css": "./dist/style.css",
"./package.json": "./package.json"
},
"devDependencies": {
"solid-js": "^1.7.8"
}
}
6 changes: 5 additions & 1 deletion packages/capture/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "",
"homepage": "https://microblink.com/",
"repository": "github:BlinkID/capture-browser",
"version": "1.0.3",
"version": "1.0.4",
"scripts": {
"rollup": "api-extractor run --local --verbose",
"build:js": "vite build",
Expand All @@ -21,6 +21,10 @@
"dist",
"types"
],
"publishConfig": {
"directory": "npm-publish",
"linkDirectory": false
},
"main": "./dist/capture.umd.cjs",
"module": "./dist/capture.js",
"types": "./types/index.d.ts",
Expand Down
1 change: 1 addition & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bb9ffff

Please sign in to comment.