From 546041ad8a1ae76125f16ae67a1c5c4aa110bfc3 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 14 Dec 2022 10:03:11 -0500 Subject: [PATCH] *Add typescript and json plugins to preset --- package.json | 2 ++ src/index.ts | 10 ++++++++- yarn.lock | 59 +++++++++++++++++++++++++++++++++++++++++----------- 3 files changed, 58 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 36bbc1f..6708962 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "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", "rollup": "^3.7.4" }, "devDependencies": { diff --git a/src/index.ts b/src/index.ts index 7f16f7d..5895edb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,9 +2,17 @@ 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"; +import typescript from "@rollup/plugin-typescript"; +import json from "@rollup/plugin-json"; const preset = defineConfig({ - plugins: [nodeResolve(), commonjs(), bundleNativeModulesPlugin()], + plugins: [ + typescript(), + json(), + nodeResolve(), + commonjs(), + bundleNativeModulesPlugin(), + ], }); export default preset; diff --git a/yarn.lock b/yarn.lock index bebfa8d..e5bef7e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -19,6 +19,20 @@ __metadata: languageName: node 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": version: 0.1.0 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 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": version: 15.0.1 resolution: "@rollup/plugin-node-resolve@npm:15.0.1" @@ -88,6 +116,25 @@ __metadata: languageName: node 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": version: 5.0.2 resolution: "@rollup/pluginutils@npm:5.0.2" @@ -931,18 +978,6 @@ __metadata: languageName: node 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": version: 1.22.1 resolution: "resolve@npm:1.22.1"