From 740f10c0e0a6e77a5409e1e4562ad8d505972a26 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 29 Dec 2024 06:17:29 +0000 Subject: [PATCH] build(deps-dev): bump @rollup/plugin-typescript from 11.1.6 to 12.1.2 (#498) * build(deps-dev): bump @rollup/plugin-typescript from 11.1.6 to 12.1.2 Bumps [@rollup/plugin-typescript](https://github.com/rollup/plugins/tree/HEAD/packages/typescript) from 11.1.6 to 12.1.2. - [Changelog](https://github.com/rollup/plugins/blob/master/packages/typescript/CHANGELOG.md) - [Commits](https://github.com/rollup/plugins/commits/typescript-v12.1.2/packages/typescript) --- updated-dependencies: - dependency-name: "@rollup/plugin-typescript" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * build(rollup): allow for files to be nested in folders within outDir See rollup/plugins#1783 --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mark --- package-lock.json | 14 +++++++------- package.json | 2 +- rollup.config.mjs | 5 +++++ 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2775e1a..3da2262 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20,7 +20,7 @@ "@rollup/plugin-commonjs": "28.0.2", "@rollup/plugin-node-resolve": "16.0.0", "@rollup/plugin-terser": "0.4.4", - "@rollup/plugin-typescript": "11.1.6", + "@rollup/plugin-typescript": "12.1.2", "@types/jest": "29.5.14", "@types/node": "22.10.2", "@typescript-eslint/eslint-plugin": "8.18.2", @@ -1962,9 +1962,9 @@ } }, "node_modules/@rollup/plugin-typescript": { - "version": "11.1.6", - "resolved": "https://registry.npmjs.org/@rollup/plugin-typescript/-/plugin-typescript-11.1.6.tgz", - "integrity": "sha512-R92yOmIACgYdJ7dJ97p4K69I8gg6IEHt8M7dUBxN3W6nrO8uUxX5ixl0yU/N3aZTi8WhPuICvOHXQvF6FaykAA==", + "version": "12.1.2", + "resolved": "https://registry.npmjs.org/@rollup/plugin-typescript/-/plugin-typescript-12.1.2.tgz", + "integrity": "sha512-cdtSp154H5sv637uMr1a8OTWB0L1SWDSm1rDGiyfcGcvQ6cuTs4MDk2BVEBGysUWago4OJN4EQZqOTl/QY3Jgg==", "dev": true, "dependencies": { "@rollup/pluginutils": "^5.1.0", @@ -9567,9 +9567,9 @@ } }, "@rollup/plugin-typescript": { - "version": "11.1.6", - "resolved": "https://registry.npmjs.org/@rollup/plugin-typescript/-/plugin-typescript-11.1.6.tgz", - "integrity": "sha512-R92yOmIACgYdJ7dJ97p4K69I8gg6IEHt8M7dUBxN3W6nrO8uUxX5ixl0yU/N3aZTi8WhPuICvOHXQvF6FaykAA==", + "version": "12.1.2", + "resolved": "https://registry.npmjs.org/@rollup/plugin-typescript/-/plugin-typescript-12.1.2.tgz", + "integrity": "sha512-cdtSp154H5sv637uMr1a8OTWB0L1SWDSm1rDGiyfcGcvQ6cuTs4MDk2BVEBGysUWago4OJN4EQZqOTl/QY3Jgg==", "dev": true, "requires": { "@rollup/pluginutils": "^5.1.0", diff --git a/package.json b/package.json index 8fb1c8b..7f4b59b 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "@rollup/plugin-commonjs": "28.0.2", "@rollup/plugin-node-resolve": "16.0.0", "@rollup/plugin-terser": "0.4.4", - "@rollup/plugin-typescript": "11.1.6", + "@rollup/plugin-typescript": "12.1.2", "@types/jest": "29.5.14", "@types/node": "22.10.2", "@typescript-eslint/eslint-plugin": "8.18.2", diff --git a/rollup.config.mjs b/rollup.config.mjs index 0e2b355..db7d6b0 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -5,12 +5,14 @@ import typescript from '@rollup/plugin-typescript'; const getConfig = (minify = false) => ({ input: 'src/index.ts', + output: { file: `dist/style-to-object${minify ? '.min' : ''}.js`, format: 'umd', name: 'StyleToObject', sourcemap: true, }, + plugins: [ commonjs(), resolve(), @@ -18,6 +20,9 @@ const getConfig = (minify = false) => ({ declaration: false, declarationMap: false, module: 'esnext', + compilerOptions: { + outDir: 'dist', + }, }), minify && terser(), ],