From 2537314af58dc160f246426f899ae2e05ed5ceeb Mon Sep 17 00:00:00 2001 From: Christian Kaisermann Date: Tue, 24 Aug 2021 08:25:52 -0300 Subject: [PATCH] chore: update svelte and rollup deps --- package.json | 2 ++ rollup.config.js | 9 ++------- tsconfig.json | 2 +- yarn.lock | 37 +++++++++++++++++++++++++++++++++++-- 4 files changed, 40 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index d781a9d..3a8b576 100644 --- a/package.json +++ b/package.json @@ -74,6 +74,8 @@ "@babel/preset-env": "^7.11.5", "@kiwi/eslint-config": "^1.10.1", "@kiwi/prettier-config": "^1.10.1", + "@rollup/plugin-commonjs": "^20.0.0", + "@rollup/plugin-typescript": "^8.2.5", "@types/dlv": "^1.1.2", "@types/estree": "0.0.45", "@types/intl": "^1.2.0", diff --git a/rollup.config.js b/rollup.config.js index 8fd0dcd..9fde6e6 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,5 +1,5 @@ -import commonjs from 'rollup-plugin-commonjs'; -import ts from 'rollup-plugin-typescript2'; +import commonjs from '@rollup/plugin-commonjs'; +import ts from '@rollup/plugin-typescript'; import { terser } from 'rollup-plugin-terser'; import autoExternal from 'rollup-plugin-auto-external'; @@ -23,11 +23,6 @@ export default [ }, { input: 'src/cli/index.ts', - - // external: id => { - // if (id.startsWith('/')) return false - // return externals.has(id) || id.match(/svelte/gi) - // }, output: [ { file: pkg.bin['svelte-i18n'], diff --git a/tsconfig.json b/tsconfig.json index 6c72373..2c88793 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,6 +10,6 @@ "target": "es2017", "lib": ["es2018", "dom", "esnext"], "outDir": "dist", - "types": ["svelte", "jest"] + "types": ["svelte", "jest", "node"] } } diff --git a/yarn.lock b/yarn.lock index d3a6cb3..d4917ff 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1101,6 +1101,27 @@ "@nodelib/fs.scandir" "2.1.4" fastq "^1.6.0" +"@rollup/plugin-commonjs@^20.0.0": + version "20.0.0" + resolved "https://registry.yarnpkg.com/@rollup/plugin-commonjs/-/plugin-commonjs-20.0.0.tgz#3246872dcbcb18a54aaa6277a8c7d7f1b155b745" + integrity sha512-5K0g5W2Ol8hAcTHqcTBHiA7M58tfmYi1o9KxeJuuRNpGaTa5iLjcyemBitCBcKXaHamOBBEH2dGom6v6Unmqjg== + dependencies: + "@rollup/pluginutils" "^3.1.0" + commondir "^1.0.1" + estree-walker "^2.0.1" + glob "^7.1.6" + is-reference "^1.2.1" + magic-string "^0.25.7" + resolve "^1.17.0" + +"@rollup/plugin-typescript@^8.2.5": + version "8.2.5" + resolved "https://registry.yarnpkg.com/@rollup/plugin-typescript/-/plugin-typescript-8.2.5.tgz#e0319761b2b5105615e5a0c371ae05bc2984b7de" + integrity sha512-QL/LvDol/PAGB2O0S7/+q2HpSUNodpw7z6nGn9BfoVCPOZ0r4EALrojFU29Bkoi2Hr2jgTocTejJ5GGWZfOxbQ== + dependencies: + "@rollup/pluginutils" "^3.1.0" + resolve "^1.17.0" + "@rollup/pluginutils@^3.1.0": version "3.1.0" resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-3.1.0.tgz#706b4524ee6dc8b103b3c995533e5ad680c02b9b" @@ -3287,6 +3308,18 @@ glob@^7.0.0, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4: once "^1.3.0" path-is-absolute "^1.0.0" +glob@^7.1.6: + version "7.1.7" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.7.tgz#3b193e9233f01d42d0b3f78294bbeeb418f94a90" + integrity sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.4" + once "^1.3.0" + path-is-absolute "^1.0.0" + globals@^11.1.0, globals@^11.12.0: version "11.12.0" resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" @@ -3747,7 +3780,7 @@ is-potential-custom-element-name@^1.0.0: resolved "https://registry.yarnpkg.com/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.0.tgz#0c52e54bcca391bb2c494b21e8626d7336c6e397" integrity sha1-DFLlS8yjkbssSUsh6GJtczbG45c= -is-reference@^1.1.2: +is-reference@^1.1.2, is-reference@^1.2.1: version "1.2.1" resolved "https://registry.yarnpkg.com/is-reference/-/is-reference-1.2.1.tgz#8b2dac0b371f4bc994fdeaba9eb542d03002d0b7" integrity sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ== @@ -4608,7 +4641,7 @@ lru-cache@^6.0.0: dependencies: yallist "^4.0.0" -magic-string@^0.25.2: +magic-string@^0.25.2, magic-string@^0.25.7: version "0.25.7" resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.25.7.tgz#3f497d6fd34c669c6798dcb821f2ef31f5445051" integrity sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA==