diff --git a/packages/wow-ui/package.json b/packages/wow-ui/package.json index d872899d..63c66010 100644 --- a/packages/wow-ui/package.json +++ b/packages/wow-ui/package.json @@ -45,6 +45,7 @@ "devDependencies": { "@chromatic-com/storybook": "^1.3.3", "@rollup/plugin-alias": "^5.1.0", + "@rollup/plugin-typescript": "^11.1.6", "@storybook/addon-a11y": "^7.5.3", "@storybook/addon-essentials": "^7.5.3", "@storybook/addon-interactions": "^7.5.3", @@ -65,7 +66,6 @@ "eslint": "^8.57.0", "eslint-plugin-storybook": "^0.6.15", "rollup-plugin-peer-deps-external": "^2.2.4", - "rollup-plugin-typescript2": "^0.36.0", "storybook": "^7.5.3", "tsx": "^4.9.3", "typescript": "^5.3.3" diff --git a/packages/wow-ui/rollup.config.js b/packages/wow-ui/rollup.config.js index ab167672..e5cfb526 100644 --- a/packages/wow-ui/rollup.config.js +++ b/packages/wow-ui/rollup.config.js @@ -8,7 +8,7 @@ import resolve from "@rollup/plugin-node-resolve"; import { babel } from "@rollup/plugin-babel"; import url from "@rollup/plugin-url"; import peerDepsExternal from "rollup-plugin-peer-deps-external"; -import typescript from "rollup-plugin-typescript2"; +import typescript from "@rollup/plugin-typescript"; import { fileURLToPath } from "url"; const extensions = [".tsx", ".ts", ".js", ".jsx"]; @@ -44,10 +44,8 @@ export default { }), peerDepsExternal(), typescript({ - tsconfigOverride: { - include: ["src/components/**/*"], - exclude: ["**/*.stories.ts", "**/*.stories.tsx"], - }, + include: ["src/components/**/*"], + exclude: ["**/*.stories.ts", "**/*.stories.tsx"], }), resolve({ extensions }), commonjs({ diff --git a/packages/wow-ui/tsconfig.json b/packages/wow-ui/tsconfig.json index e428decb..ae582a48 100644 --- a/packages/wow-ui/tsconfig.json +++ b/packages/wow-ui/tsconfig.json @@ -24,6 +24,6 @@ "@styled-system/*": ["./styled-system/*"] } }, - "include": ["src"], + "include": ["src", "**/*.ts", "**/*.tsx"], "exclude": ["node_modules", "dist", "styled-system"] } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a8d3c813..031f8ac7 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -246,6 +246,9 @@ importers: '@rollup/plugin-alias': specifier: ^5.1.0 version: 5.1.0(rollup@4.17.2) + '@rollup/plugin-typescript': + specifier: ^11.1.6 + version: 11.1.6(rollup@4.17.2)(typescript@5.3.3) '@storybook/addon-a11y': specifier: ^7.5.3 version: 7.6.19 @@ -306,9 +309,6 @@ importers: rollup-plugin-peer-deps-external: specifier: ^2.2.4 version: 2.2.4(rollup@4.17.2) - rollup-plugin-typescript2: - specifier: ^0.36.0 - version: 0.36.0(rollup@4.17.2)(typescript@5.3.3) storybook: specifier: ^7.5.3 version: 7.6.19 @@ -3915,6 +3915,25 @@ packages: terser: 5.31.0 dev: true + /@rollup/plugin-typescript@11.1.6(rollup@4.17.2)(typescript@5.3.3): + resolution: {integrity: sha512-R92yOmIACgYdJ7dJ97p4K69I8gg6IEHt8M7dUBxN3W6nrO8uUxX5ixl0yU/N3aZTi8WhPuICvOHXQvF6FaykAA==} + engines: {node: '>=14.0.0'} + peerDependencies: + rollup: ^2.14.0||^3.0.0||^4.0.0 + tslib: '*' + typescript: '>=3.7.0' + peerDependenciesMeta: + rollup: + optional: true + tslib: + optional: true + dependencies: + '@rollup/pluginutils': 5.1.0(rollup@4.17.2) + resolve: 1.22.8 + rollup: 4.17.2 + typescript: 5.3.3 + dev: true + /@rollup/plugin-url@8.0.2(rollup@4.17.2): resolution: {integrity: sha512-5yW2LP5NBEgkvIRSSEdJkmxe5cUNZKG3eenKtfJvSkxVm/xTTu7w+ayBtNwhozl1ZnTUCU0xFaRQR+cBl2H7TQ==} engines: {node: '>=14.0.0'} @@ -3930,14 +3949,6 @@ packages: rollup: 4.17.2 dev: true - /@rollup/pluginutils@4.2.1: - resolution: {integrity: sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==} - engines: {node: '>= 8.0.0'} - dependencies: - estree-walker: 2.0.2 - picomatch: 2.3.1 - dev: true - /@rollup/pluginutils@5.1.0(rollup@4.17.2): resolution: {integrity: sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==} engines: {node: '>=14.0.0'} @@ -14718,21 +14729,6 @@ packages: rollup: 4.17.2 dev: true - /rollup-plugin-typescript2@0.36.0(rollup@4.17.2)(typescript@5.3.3): - resolution: {integrity: sha512-NB2CSQDxSe9+Oe2ahZbf+B4bh7pHwjV5L+RSYpCu7Q5ROuN94F9b6ioWwKfz3ueL3KTtmX4o2MUH2cgHDIEUsw==} - peerDependencies: - rollup: '>=1.26.3' - typescript: '>=2.4.0' - dependencies: - '@rollup/pluginutils': 4.2.1 - find-cache-dir: 3.3.2 - fs-extra: 10.1.0 - rollup: 4.17.2 - semver: 7.6.0 - tslib: 2.6.2 - typescript: 5.3.3 - dev: true - /rollup@0.63.5: resolution: {integrity: sha512-dFf8LpUNzIj3oE0vCvobX6rqOzHzLBoblyFp+3znPbjiSmSvOoK2kMKx+Fv9jYduG1rvcCfCveSgEaQHjWRF6g==} hasBin: true