-
Notifications
You must be signed in to change notification settings - Fork 10
feat: publish dbc to npm #381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
e5c8e33
create npm packages
amoeba 0c9288c
add npm publish step to release workflow
amoeba 49e827c
refactor create_packages.js to use gh
amoeba b9a32eb
format
amoeba 3fa16ab
add README and LICENSE to packages
amoeba e9151e0
reset version field on all package.json files
amoeba 9ecaa55
generate npm artifacts dynamically
amoeba 8d660cc
remove per-package bin dirs
amoeba a66e3da
format
amoeba 63bf794
format
amoeba 821ff84
improve unsupported platform message
amoeba bcec6d5
create npm packages in snapshot job too
amoeba 4a5809c
try to install npm packages in snapshot job
amoeba File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| node_modules/ | ||
|
|
||
| # Files generated by scripts/create_packages.js — not committed | ||
| packages/*/bin/dbc* | ||
| packages/*/package.json | ||
| packages/*/README.md | ||
| packages/*/LICENSE | ||
| wrapper/package.json | ||
| wrapper/LICENSE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| <!-- | ||
| Copyright 2026 Columnar Technologies Inc. | ||
|
|
||
| Licensed under the Apache License, Version 2.0 (the "License"); | ||
| you may not use this file except in compliance with the License. | ||
| You may obtain a copy of the License at | ||
|
|
||
| http://www.apache.org/licenses/LICENSE-2.0 | ||
|
|
||
| Unless required by applicable law or agreed to in writing, software | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
|
|
||
| # @columnar-tech/dbc-PLATFORM_SUFFIX | ||
|
|
||
| This package contains the `PLATFORM_SUFFIX` binary for [`@columnar-tech/dbc`](https://www.npmjs.com/package/@columnar-tech/dbc). | ||
|
|
||
| **Do not install this package directly.** Install the wrapper instead: | ||
|
|
||
| ```sh | ||
| npm install -g @columnar-tech/dbc | ||
| ``` | ||
|
|
||
| This package is automatically selected by npm based on your operating system and CPU architecture. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| // Copyright 2026 Columnar Technologies Inc. | ||
| // | ||
| // Licensed under the Apache License, Version 2.0 (the "License"); | ||
| // you may not use this file except in compliance with the License. | ||
| // You may obtain a copy of the License at | ||
| // | ||
| // http://www.apache.org/licenses/LICENSE-2.0 | ||
| // | ||
| // Unless required by applicable law or agreed to in writing, software | ||
| // distributed under the License is distributed on an "AS IS" BASIS, | ||
| // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| // See the License for the specific language governing permissions and | ||
| // limitations under the License. | ||
|
|
||
| "use strict"; | ||
|
|
||
| // Add a new entry here to support a new platform across both the | ||
| // build script (create_packages.js) and the wrapper shim (bin/dbc.js). | ||
| const PLATFORMS = [ | ||
| { | ||
| goosArch: "darwin-arm64", | ||
| npmPkg: "@columnar-tech/dbc-darwin-arm64", | ||
| description: "macOS arm64 binary for dbc, the CLI for installing ADBC drivers", | ||
| binary: "dbc", | ||
| os: "darwin", | ||
| cpu: "arm64", | ||
| }, | ||
| { | ||
| goosArch: "darwin-amd64", | ||
| npmPkg: "@columnar-tech/dbc-darwin-x64", | ||
| description: "macOS x64 binary for dbc, the CLI for installing ADBC drivers", | ||
| binary: "dbc", | ||
| os: "darwin", | ||
| cpu: "x64", | ||
| }, | ||
| { | ||
| goosArch: "linux-arm64", | ||
| npmPkg: "@columnar-tech/dbc-linux-arm64", | ||
| description: "Linux arm64 binary for dbc, the CLI for installing ADBC drivers", | ||
| binary: "dbc", | ||
| os: "linux", | ||
| cpu: "arm64", | ||
| }, | ||
| { | ||
| goosArch: "linux-amd64", | ||
| npmPkg: "@columnar-tech/dbc-linux-x64", | ||
| description: "Linux x64 binary for dbc, the CLI for installing ADBC drivers", | ||
| binary: "dbc", | ||
| os: "linux", | ||
| cpu: "x64", | ||
| }, | ||
| { | ||
| goosArch: "windows-amd64", | ||
| npmPkg: "@columnar-tech/dbc-win32-x64", | ||
| description: "Windows x64 binary for dbc, the CLI for installing ADBC drivers", | ||
| binary: "dbc.exe", | ||
| os: "win32", | ||
| cpu: "x64", | ||
| }, | ||
| ]; | ||
|
|
||
| module.exports = { PLATFORMS }; |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.