Skip to content

Commit 5033449

Browse files
authored
[ODIN-257] publish to npm (#32)
* registry * namespace * ver * package.json * examples update * readme update * v0.0.36 * lint
1 parent 5b96f61 commit 5033449

File tree

6 files changed

+27
-18
lines changed

6 files changed

+27
-18
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
## Using
1313

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

1616
## Developing
1717

@@ -34,4 +34,4 @@ Other useful scripts:
3434
## Publishing
3535

3636
- `export GITHUB_TOKEN=<your PAT>` - create a PAT in github that allows uploading artifacts to github releases
37-
- `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
37+
- `yarn login && yarn publish` - publish will do a bunch of various stuff, including prebuilding binaries for linux/mac and publishing those

examples/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"run-stream-example": "node dist/stream-example.js"
99
},
1010
"dependencies": {
11-
"@deepcrawl/node-duckdb": "0.0.32",
1211
"@types/node": "^14.14.10",
12+
"node-duckdb": "^0.0.33",
1313
"typescript": "^4.1.2"
1414
}
1515
}

examples/src/iterator-example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Connection, DuckDB, RowResultFormat } from "@deepcrawl/node-duckdb";
1+
import { Connection, DuckDB, RowResultFormat } from "node-duckdb";
22

33
async function queryDatabaseWithIterator() {
44
// create new database in memory

examples/src/stream-example.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Connection, DuckDB, RowResultFormat } from "@deepcrawl/node-duckdb";
1+
import { Connection, DuckDB, RowResultFormat } from "node-duckdb";
22
import { createWriteStream } from "fs";
33
import {Transform} from "stream";
44

examples/yarn.lock

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,6 @@
22
# yarn lockfile v1
33

44

5-
"@deepcrawl/node-duckdb@0.0.32":
6-
version "0.0.32"
7-
resolved "https://npm.pkg.github.com/download/@deepcrawl/node-duckdb/0.0.32/11ce6ffef2ddb3082d78985daadcddd77fd00b92c5179f0f48ff5df2e338ee20#35e9f1464e6731f7a59719f61875ebfd824374f6"
8-
integrity sha512-D9C7y6pbdL1RR+EifZpIA4XU4LFfEI8bs6QZWThdtmRytR0XaE9DJIFbYanIfCK5DRv5zAIWgdWoCa/w1n01Ew==
9-
dependencies:
10-
cmake-js "^6.1.0"
11-
node-addon-api "^3.0.2"
12-
prebuild-install "^6.0.0"
13-
rimraf "^3.0.2"
14-
155
"@types/node@^14.14.10":
166
version "14.14.10"
177
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.10.tgz#5958a82e41863cfc71f2307b3748e3491ba03785"
@@ -697,6 +687,16 @@ node-addon-api@^3.0.2:
697687
resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-3.0.2.tgz#04bc7b83fd845ba785bb6eae25bc857e1ef75681"
698688
integrity sha512-+D4s2HCnxPd5PjjI0STKwncjXTUKKqm74MDMz9OPXavjsGmjkvwgLtA5yoxJUdmpj52+2u+RrXgPipahKczMKg==
699689

690+
node-duckdb@^0.0.33:
691+
version "0.0.33"
692+
resolved "https://registry.yarnpkg.com/node-duckdb/-/node-duckdb-0.0.33.tgz#06f277d8736cebcbafdfbaa9915b9223685ecdf6"
693+
integrity sha512-oZtdX08gGS0lwNioxc2vGRhZw+9eO4SqDDSsCHc2glCTvGRNn92/TaqD/6/CW0gDkVZULmhO8wqLWQBneWDFKg==
694+
dependencies:
695+
cmake-js "^6.1.0"
696+
node-addon-api "^3.0.2"
697+
prebuild-install "^6.0.0"
698+
rimraf "^3.0.2"
699+
700700
noop-logger@^0.1.1:
701701
version "0.1.1"
702702
resolved "https://registry.yarnpkg.com/noop-logger/-/noop-logger-0.1.1.tgz#94a2b1633c4f1317553007d8966fd0e841b6a4c2"

package.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
{
2-
"name": "@deepcrawl/node-duckdb",
3-
"version": "0.0.32",
2+
"name": "node-duckdb",
3+
"version": "0.0.36",
44
"private": false,
5+
"description": "DuckDB for Node.JS",
6+
"keywords": [
7+
"duckdb",
8+
"sql",
9+
"database",
10+
"db",
11+
"async",
12+
"stream"
13+
],
514
"repository": {
615
"type": "git",
716
"url": "ssh://git@github.com/deepcrawl/node-duckdb.git",
@@ -73,6 +82,6 @@
7382
"node": ">= 12.17.0"
7483
},
7584
"publishConfig": {
76-
"registry": "https://npm.pkg.github.com/"
85+
"registry": "https://registry.npmjs.org/"
7786
}
7887
}

0 commit comments

Comments
 (0)