From 50334497265210783e755eb0f009b9612433c751 Mon Sep 17 00:00:00 2001 From: Rostislav Provodenko <60982217+rostislavdeepcrawl@users.noreply.github.com> Date: Wed, 2 Dec 2020 15:50:32 +0300 Subject: [PATCH] [ODIN-257] publish to npm (#32) * registry * namespace * ver * package.json * examples update * readme update * v0.0.36 * lint --- README.md | 4 ++-- examples/package.json | 2 +- examples/src/iterator-example.ts | 2 +- examples/src/stream-example.ts | 2 +- examples/yarn.lock | 20 ++++++++++---------- package.json | 15 ++++++++++++--- 6 files changed, 27 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 7c5bead..92e19d7 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ ## Using -[See examples](examples) +[See examples](https://github.com/deepcrawl/node-duckdb/tree/master/examples) ## Developing @@ -34,4 +34,4 @@ Other useful scripts: ## Publishing - `export GITHUB_TOKEN=` - create a PAT in github that allows uploading artifacts to github releases -- `yarn login --registry=https://npm.pkg.github.com && yarn publish` - publish will do a bunch of various stuff, including prebuilding binaries for linux/mac and publishing those +- `yarn login && yarn publish` - publish will do a bunch of various stuff, including prebuilding binaries for linux/mac and publishing those diff --git a/examples/package.json b/examples/package.json index ace7e4e..f82e5cd 100644 --- a/examples/package.json +++ b/examples/package.json @@ -8,8 +8,8 @@ "run-stream-example": "node dist/stream-example.js" }, "dependencies": { - "@deepcrawl/node-duckdb": "0.0.32", "@types/node": "^14.14.10", + "node-duckdb": "^0.0.33", "typescript": "^4.1.2" } } diff --git a/examples/src/iterator-example.ts b/examples/src/iterator-example.ts index 427da8b..c10cfe8 100644 --- a/examples/src/iterator-example.ts +++ b/examples/src/iterator-example.ts @@ -1,4 +1,4 @@ -import { Connection, DuckDB, RowResultFormat } from "@deepcrawl/node-duckdb"; +import { Connection, DuckDB, RowResultFormat } from "node-duckdb"; async function queryDatabaseWithIterator() { // create new database in memory diff --git a/examples/src/stream-example.ts b/examples/src/stream-example.ts index 11d0e8a..425291e 100644 --- a/examples/src/stream-example.ts +++ b/examples/src/stream-example.ts @@ -1,4 +1,4 @@ -import { Connection, DuckDB, RowResultFormat } from "@deepcrawl/node-duckdb"; +import { Connection, DuckDB, RowResultFormat } from "node-duckdb"; import { createWriteStream } from "fs"; import {Transform} from "stream"; diff --git a/examples/yarn.lock b/examples/yarn.lock index 39723be..c22a47b 100644 --- a/examples/yarn.lock +++ b/examples/yarn.lock @@ -2,16 +2,6 @@ # yarn lockfile v1 -"@deepcrawl/node-duckdb@0.0.32": - version "0.0.32" - resolved "https://npm.pkg.github.com/download/@deepcrawl/node-duckdb/0.0.32/11ce6ffef2ddb3082d78985daadcddd77fd00b92c5179f0f48ff5df2e338ee20#35e9f1464e6731f7a59719f61875ebfd824374f6" - integrity sha512-D9C7y6pbdL1RR+EifZpIA4XU4LFfEI8bs6QZWThdtmRytR0XaE9DJIFbYanIfCK5DRv5zAIWgdWoCa/w1n01Ew== - dependencies: - cmake-js "^6.1.0" - node-addon-api "^3.0.2" - prebuild-install "^6.0.0" - rimraf "^3.0.2" - "@types/node@^14.14.10": version "14.14.10" resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.10.tgz#5958a82e41863cfc71f2307b3748e3491ba03785" @@ -697,6 +687,16 @@ node-addon-api@^3.0.2: resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-3.0.2.tgz#04bc7b83fd845ba785bb6eae25bc857e1ef75681" integrity sha512-+D4s2HCnxPd5PjjI0STKwncjXTUKKqm74MDMz9OPXavjsGmjkvwgLtA5yoxJUdmpj52+2u+RrXgPipahKczMKg== +node-duckdb@^0.0.33: + version "0.0.33" + resolved "https://registry.yarnpkg.com/node-duckdb/-/node-duckdb-0.0.33.tgz#06f277d8736cebcbafdfbaa9915b9223685ecdf6" + integrity sha512-oZtdX08gGS0lwNioxc2vGRhZw+9eO4SqDDSsCHc2glCTvGRNn92/TaqD/6/CW0gDkVZULmhO8wqLWQBneWDFKg== + dependencies: + cmake-js "^6.1.0" + node-addon-api "^3.0.2" + prebuild-install "^6.0.0" + rimraf "^3.0.2" + noop-logger@^0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/noop-logger/-/noop-logger-0.1.1.tgz#94a2b1633c4f1317553007d8966fd0e841b6a4c2" diff --git a/package.json b/package.json index 5d6d49c..69a81d3 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,16 @@ { - "name": "@deepcrawl/node-duckdb", - "version": "0.0.32", + "name": "node-duckdb", + "version": "0.0.36", "private": false, + "description": "DuckDB for Node.JS", + "keywords": [ + "duckdb", + "sql", + "database", + "db", + "async", + "stream" + ], "repository": { "type": "git", "url": "ssh://git@github.com/deepcrawl/node-duckdb.git", @@ -73,6 +82,6 @@ "node": ">= 12.17.0" }, "publishConfig": { - "registry": "https://npm.pkg.github.com/" + "registry": "https://registry.npmjs.org/" } }