Skip to content

Commit 3433cd7

Browse files
jcfrancobenelan
authored andcommitted
chore: use Vite for @esri/eslint-plugin-calcite-components build (#11752)
**Related Issue:** N/A ## Summary ✨🖥🔨✨
1 parent 52db1c9 commit 3433cd7

File tree

6 files changed

+23
-98
lines changed

6 files changed

+23
-98
lines changed

package-lock.json

Lines changed: 0 additions & 68 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@
4444
"@esri/calcite-base": "1.2.0",
4545
"@octokit/webhooks-types": "7.6.1",
4646
"@prettier/sync": "0.5.2",
47-
"@rollup/plugin-node-resolve": "16.0.1",
48-
"@rollup/plugin-typescript": "12.1.2",
4947
"@storybook/addon-a11y": "8.6.4",
5048
"@storybook/addon-controls": "8.6.4",
5149
"@storybook/addon-docs": "8.6.4",
@@ -108,7 +106,6 @@
108106
"react": "18.3.1",
109107
"react-dom": "18.3.1",
110108
"rimraf": "6.0.1",
111-
"rollup": "4.35.0",
112109
"semver": "7.7.1",
113110
"shell-quote": "1.8.2",
114111
"storybook": "8.6.4",

packages/eslint-plugin-calcite-components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"THIRD-PARTY-LICENSES.md"
1515
],
1616
"scripts": {
17-
"build": "rollup --config rollup.config.ts --configPlugin typescript --bundleConfigAsCjs",
17+
"build": "vite build",
1818
"lint": "concurrently npm:lint:*",
1919
"lint:json": "prettier --write \"**/*.json\" >/dev/null",
2020
"lint:md": "prettier --write \"**/*.md\" >/dev/null && markdownlint \"**/*.md\" --fix --dot --ignore-path .gitignore --ignore-path ../../.gitignore",

packages/eslint-plugin-calcite-components/rollup.config.ts

Lines changed: 0 additions & 25 deletions
This file was deleted.

packages/eslint-plugin-calcite-components/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"strict": true
44
},
55
"extends": "../calcite-components/tsconfig-base.json",
6-
"include": ["src/index.ts", "rollup.config.ts"]
6+
"include": ["src/index.ts", "vite.config.mts"]
77
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { defineConfig } from "vite";
2+
import { version } from "./package.json";
3+
4+
export default defineConfig({
5+
build: {
6+
lib: {
7+
entry: "src/index.ts",
8+
formats: ["cjs"],
9+
fileName: () => "index.js",
10+
},
11+
rollupOptions: {
12+
external: ["eslint", "@typescript-eslint/utils"],
13+
output: {
14+
banner: `/*!
15+
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
16+
See https://github.com/Esri/calcite-design-system/blob/${version}/LICENSE.md for details.
17+
*/`,
18+
}
19+
},
20+
},
21+
});

0 commit comments

Comments
 (0)