*Add typescript and json plugins to preset

This commit is contained in:
Derrick Hammer 2022-12-14 10:03:11 -05:00
parent 5e8ee4dab8
commit 546041ad8a
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
3 changed files with 58 additions and 13 deletions

View File

@ -5,7 +5,9 @@
"dependencies": { "dependencies": {
"@lumeweb/rollup-plugin-bundle-native-modules": "https://git.lumeweb.com/LumeWeb/rollup-plugin-bundle-native-modules.git", "@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-commonjs": "^23.0.4",
"@rollup/plugin-json": "^5.0.2",
"@rollup/plugin-node-resolve": "^15.0.1", "@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-typescript": "^10.0.1",
"rollup": "^3.7.4" "rollup": "^3.7.4"
}, },
"devDependencies": { "devDependencies": {

View File

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

View File

@ -19,6 +19,20 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@lumeweb/relay-plugin-rollup-preset@workspace:.":
version: 0.0.0-use.local
resolution: "@lumeweb/relay-plugin-rollup-preset@workspace:."
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-json": ^5.0.2
"@rollup/plugin-node-resolve": ^15.0.1
"@rollup/plugin-typescript": ^10.0.1
prettier: ^2.8.1
rollup: ^3.7.4
languageName: unknown
linkType: soft
"@lumeweb/rollup-plugin-bundle-native-modules@https://git.lumeweb.com/LumeWeb/rollup-plugin-bundle-native-modules.git": "@lumeweb/rollup-plugin-bundle-native-modules@https://git.lumeweb.com/LumeWeb/rollup-plugin-bundle-native-modules.git":
version: 0.1.0 version: 0.1.0
resolution: "@lumeweb/rollup-plugin-bundle-native-modules@https://git.lumeweb.com/LumeWeb/rollup-plugin-bundle-native-modules.git#commit=194368400631fcf482cd70169480ba1bcc0c6e95" resolution: "@lumeweb/rollup-plugin-bundle-native-modules@https://git.lumeweb.com/LumeWeb/rollup-plugin-bundle-native-modules.git#commit=194368400631fcf482cd70169480ba1bcc0c6e95"
@ -69,6 +83,20 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@rollup/plugin-json@npm:^5.0.2":
version: 5.0.2
resolution: "@rollup/plugin-json@npm:5.0.2"
dependencies:
"@rollup/pluginutils": ^5.0.1
peerDependencies:
rollup: ^1.20.0||^2.0.0||^3.0.0
peerDependenciesMeta:
rollup:
optional: true
checksum: 9b5f90ea311dfcfacf0f38af39bbb1954ea56d6faecdee3d528f73d0e02da96a0706ab21fae0c8eef9bb5d756f6f50b40b5a252ffd9800397012b5bac6764b6f
languageName: node
linkType: hard
"@rollup/plugin-node-resolve@npm:^15.0.1": "@rollup/plugin-node-resolve@npm:^15.0.1":
version: 15.0.1 version: 15.0.1
resolution: "@rollup/plugin-node-resolve@npm:15.0.1" resolution: "@rollup/plugin-node-resolve@npm:15.0.1"
@ -88,6 +116,25 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@rollup/plugin-typescript@npm:^10.0.1":
version: 10.0.1
resolution: "@rollup/plugin-typescript@npm:10.0.1"
dependencies:
"@rollup/pluginutils": ^5.0.1
resolve: ^1.22.1
peerDependencies:
rollup: ^2.14.0||^3.0.0
tslib: "*"
typescript: ">=3.7.0"
peerDependenciesMeta:
rollup:
optional: true
tslib:
optional: true
checksum: d3e85674b5ff56c4376bbd79fd2baced3e988b7110d60b1f818eb344721f5605eaa3b56a1668631d210399db7188a7cc4790bb423ad9e56144d015fd1591ccc3
languageName: node
linkType: hard
"@rollup/pluginutils@npm:^5.0.1": "@rollup/pluginutils@npm:^5.0.1":
version: 5.0.2 version: 5.0.2
resolution: "@rollup/pluginutils@npm:5.0.2" resolution: "@rollup/pluginutils@npm:5.0.2"
@ -931,18 +978,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"relay-plugin-rollup-preset@workspace:.":
version: 0.0.0-use.local
resolution: "relay-plugin-rollup-preset@workspace:."
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
prettier: ^2.8.1
rollup: ^3.7.4
languageName: unknown
linkType: soft
"resolve@npm:^1.22.1": "resolve@npm:^1.22.1":
version: 1.22.1 version: 1.22.1
resolution: "resolve@npm:1.22.1" resolution: "resolve@npm:1.22.1"