Skip to content

Commit

Permalink
[ODIN-257] publish to npm (#32)
Browse files Browse the repository at this point in the history
* registry

* namespace

* ver

* package.json

* examples update

* readme update

* v0.0.36

* lint
  • Loading branch information
rprovodenko authored Dec 2, 2020
1 parent 5b96f61 commit 5033449
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 18 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

## Using

[See examples](examples)
[See examples](https://github.com/deepcrawl/node-duckdb/tree/master/examples)

## Developing

Expand All @@ -34,4 +34,4 @@ Other useful scripts:
## Publishing

- `export GITHUB_TOKEN=<your PAT>` - 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
2 changes: 1 addition & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
2 changes: 1 addition & 1 deletion examples/src/iterator-example.ts
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/src/stream-example.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
20 changes: 10 additions & 10 deletions examples/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,6 @@
# yarn lockfile v1


"@deepcrawl/[email protected]":
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"
Expand Down Expand Up @@ -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"
Expand Down
15 changes: 12 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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://[email protected]/deepcrawl/node-duckdb.git",
Expand Down Expand Up @@ -73,6 +82,6 @@
"node": ">= 12.17.0"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com/"
"registry": "https://registry.npmjs.org/"
}
}

0 comments on commit 5033449

Please sign in to comment.