Unable to build using rollup
- Dominant language
- C++
- Stars
- 91
- Forks
- 36
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to build duckdb based nodejs project using rollup but I get unresolved dependencies error for libraries,
mock-aws-s3, aws-sdk, and nock
Same issue described here,
mapbox/node-pre-gyp#661
When adding these dependencies in my package.json, I get below error at runtime,
```
Activating extension 'ducklake.ducklab' failed: ducklab package.json is not node-pre-gyp ready:
package.json must declare these properties:
binary.
```
Below is my rollup config,
```
import { RollupOptions } from "rollup";
import typescript from '@rollup/plugin-typescript';
import del from 'rollup-plugin-delete';
import { nodeResolve } from "@rollup/plugin-node-resolve";
import commonjs from '@rollup/plugin-commonjs';
import json from "@rollup/plugin-json";
const config = [
{
plugins: [
del({ targets: 'dist/*' }),
typescript(),
json(),
commonjs(),
nodeResolve(),
],
external: [
"vscode",
],
input: 'src/index.ts',
output: {
file: 'dist/index.cjs',
format: 'cjs',
},
},
] as RollupOptions;
export default config;
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.