*Initial version

This commit is contained in:
Derrick Hammer 2022-12-14 09:54:21 -05:00
parent 74e62e73d4
commit 3e848bc836
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
5 changed files with 1233 additions and 0 deletions

1
.yarnrc.yml Normal file
View File

@ -0,0 +1 @@
nodeLinker: node-modules

13
package.json Normal file
View File

@ -0,0 +1,13 @@
{
"name": "@lumeweb/relay-plugin-rollup-preset",
"packageManager": "yarn@3.3.0",
"dependencies": {
"@lumeweb/rollup-plugin-bundle-native-modules": "https://git.lumeweb.com/LumeWeb/rollup-plugin-bundle-native-modules.git",
"@rollup/plugin-commonjs": "^23.0.4",
"@rollup/plugin-node-resolve": "^15.0.1",
"rollup": "^3.7.4"
},
"devDependencies": {
"prettier": "^2.8.1"
}
}

10
src/index.ts Normal file
View File

@ -0,0 +1,10 @@
import { defineConfig } from "rollup";
import commonjs from "@rollup/plugin-commonjs";
import { nodeResolve } from "@rollup/plugin-node-resolve";
import { bundleNativeModulesPlugin } from "@lumeweb/rollup-plugin-bundle-native-modules";
const preset = defineConfig({
plugins: [nodeResolve(), commonjs(), bundleNativeModulesPlugin()],
});
export default preset;

15
tsconfig.json Normal file
View File

@ -0,0 +1,15 @@
{
"compilerOptions": {
"target": "es2020",
"module": "esnext",
"moduleResolution": "node",
"rootDir": "src",
"outDir": "dist",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"resolveJsonModule": true,
"declaration": true
}
}

1194
yarn.lock Normal file

File diff suppressed because it is too large Load Diff