Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regenerate lockfile #433

Merged
merged 3 commits into from Dec 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/warm-fireants-push.md
@@ -0,0 +1,5 @@
---
'@pantheon-systems/nextjs-kit': patch
---

Replaced `vite-plugin-dts` with `@rollup/plugin-typescript` for type bundling
1 change: 0 additions & 1 deletion .npmrc
@@ -1,3 +1,2 @@
lockfile-version=2
auto-install-peers=true
color=always
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -112,7 +112,8 @@
"loader-utils@>=2.0.0 <2.0.4": ">=2.0.4",
"loader-utils@>=1.0.0 <1.4.2": ">=1.4.2",
"engine.io@>=4.0.0 <6.2.1": ">=6.2.1",
"decode-uri-component@<0.2.1": ">=0.2.1"
"decode-uri-component@<0.2.1": ">=0.2.1",
"graphql-compose": "<=9.0.9"
},
"peerDependencyRules": {
"ignoreMissing": [
Expand Down
1 change: 1 addition & 0 deletions packages/cms-kit/package.json
Expand Up @@ -43,6 +43,7 @@
"@rollup/plugin-typescript": "^9.0.2",
"c8": "^7.12.0",
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.8.0",
"vitest": "^0.23.4"
}
}
1 change: 1 addition & 0 deletions packages/drupal-kit/package.json
Expand Up @@ -47,6 +47,7 @@
"react": "^16.8.0",
"react-dom": "^16.8.0",
"typescript": "^4.8.4",
"vite": "^3.1.4",
"vite-plugin-dts": "^1.6.1"
},
"dependencies": {
Expand Down
9 changes: 6 additions & 3 deletions packages/nextjs-kit/package.json
Expand Up @@ -25,8 +25,9 @@
},
"prettier": "@pantheon-systems/configs/prettier",
"scripts": {
"build": "tsc && vite build",
"watch": "tsc && vite build --watch",
"build": "pnpm clean && vite build",
"clean": "pnpm dlx rimraf ./dist",
"watch": "vite build --watch",
"typedoc": "typedoc",
"test": "vitest run",
"test:watch": "vitest",
Expand All @@ -40,17 +41,19 @@
"devDependencies": {
"@pantheon-systems/configs": "*",
"@pantheon-systems/eslint-config": "*",
"@rollup/plugin-typescript": "^9.0.2",
"@testing-library/react": "12.1.5",
"@vitejs/plugin-react": "^2.1.0",
"autoprefixer": "^10.4.12",
"c8": "^7.12.0",
"eslint-plugin-prettier": "^4.2.1",
"next": "^12.3.1",
"postcss": "^8.4.16",
"prettier": "^2.8.0",
"react": "17.0.2",
"react-dom": "17.0.2",
"tailwindcss": "^3.1.8",
"vite-plugin-dts": "^1.6.1",
"vite": "^3.1.4",
"vitest": "^0.23.4"
},
"peerDependencies": {
Expand Down
7 changes: 5 additions & 2 deletions packages/nextjs-kit/tsconfig.json
@@ -1,6 +1,9 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"jsx": "react-jsx"
}
"jsx": "react-jsx",
"declaration": true,
"declarationDir": "./dist"
},
"exclude": ["**/__tests__/**"]
}
6 changes: 3 additions & 3 deletions packages/nextjs-kit/vite.config.js
@@ -1,12 +1,12 @@
import { defineConfig } from 'vitest/config';
import react from '@vitejs/plugin-react';
import dts from 'vite-plugin-dts';
import typescript from '@rollup/plugin-typescript';

const globals = {
react: 'react',
'react-dom': 'reactDom',
'react/jsx-runtime': 'reactJsxRuntime',
next: 'next',
'react/jsx-runtime': 'jsx',
'next/link': 'Link',
'next/router': 'Router',
};
Expand All @@ -22,7 +22,7 @@ const external = [
/** @type {import('vite').defineConfig} */
export default defineConfig(() => {
return {
plugins: [react(), dts({ insertTypesEntry: true })],
plugins: [react(), typescript()],
build: {
lib: {
entry: './index.ts',
Expand Down
1 change: 1 addition & 0 deletions packages/wordpress-kit/package.json
Expand Up @@ -49,6 +49,7 @@
"@rollup/plugin-typescript": "^9.0.2",
"c8": "^7.12.0",
"msw": "^0.47.4",
"postcss": "^8.4.16",
"tailwindcss": "^3.1.8",
"vitest": "^0.25.2"
},
Expand Down