|
11 | 11 | }, |
12 | 12 | "files": [ |
13 | 13 | "dist", |
| 14 | + "!dist/*.*.test.*.d.ts", |
| 15 | + "!dist/*.*.test.*.js", |
| 16 | + "!dist/*.stories.d.ts", |
| 17 | + "!dist/*.stories.js", |
| 18 | + "!dist/*.test.*.d.ts", |
| 19 | + "!dist/*.test.*.js", |
| 20 | + "!dist/cem-analyzer-plugins", |
14 | 21 | "!dist/eslint", |
15 | 22 | "!dist/icons/storybook.*", |
16 | 23 | "!dist/storybook", |
17 | | - "!dist/*.test.js", |
18 | | - "!dist/*.test.*.d.ts", |
19 | | - "!dist/*.test.*.js", |
20 | | - "!dist/*.stories.js", |
21 | | - "!dist/*.stories.d.ts" |
| 24 | + "!dist/stylelint", |
| 25 | + "!dist/ts-morph" |
22 | 26 | ], |
23 | 27 | "exports": { |
24 | 28 | "./*.js": { |
25 | 29 | "types": "./dist/*.d.ts", |
26 | 30 | "import": "./dist/*.js" |
27 | 31 | }, |
28 | | - "./*.styles.js": null, |
29 | | - "./library/*": null, |
30 | | - "./icons/*": null, |
31 | | - "./styles/*": null, |
32 | | - "./label.js": null, |
33 | | - "./toasts.toast.js": null, |
| 32 | + "./translations/*": null, |
34 | 33 | "./tooltip.container.js": null, |
| 34 | + "./toasts.toast.js": null, |
| 35 | + "./styles/variables.css": "./dist/styles/variables.css", |
35 | 36 | "./styles/fonts.css": "./dist/styles/fonts.css", |
36 | | - "./styles/variables.css": "./dist/styles/variables.css" |
| 37 | + "./styles/*": null, |
| 38 | + "./library/*": null, |
| 39 | + "./label.js": null, |
| 40 | + "./icons/*": null, |
| 41 | + "./*.styles.js": null |
37 | 42 | }, |
38 | 43 | "scripts": { |
39 | 44 | "start": "per-env", |
40 | | - "start:development": "storybook dev --config-dir .storybook --no-open --no-version-updates --port 6006", |
41 | | - "start:production": "rimraf ./dist && npm-run-all --parallel start:production:components start:production:storybook start:production:stylesheets --aggregate-output --print-label", |
42 | | - "start:production:components": "tsc --outDir ./dist && node ./terser.js", |
| 45 | + "start:development": "npm-run-all --parallel --print-name start:development:*", |
| 46 | + "start:development:storybook": "storybook dev --config-dir .storybook --no-open --no-version-updates --port 6006", |
| 47 | + "start:production": "rimraf ./dist && npm-run-all --aggregate-output --print-label --parallel start:production:components start:production:storybook start:production:stylesheets", |
| 48 | + "start:production:components": "tsc --noCheck --outDir ./dist && node ./terser.js", |
43 | 49 | "start:production:figma": "pnpm dt export-variables && pnpm dt build-tokens && pnpm dt build-styles", |
44 | 50 | "start:production:storybook": "storybook build --config-dir .storybook --disable-telemetry --output-dir ./dist/storybook", |
45 | 51 | "start:production:stylesheets": "node ./esbuild.js", |
46 | 52 | "format": "per-env", |
47 | | - "format:development": "prettier . --write && stylelint '**/*.styles.ts' --custom-syntax postcss-lit --fix", |
48 | | - "format:production": "prettier . --check && stylelint '**/*.styles.ts' --custom-syntax postcss-lit --no-color", |
| 53 | + "format:development": "chokidar '**/*' --ignore 'dist/**' --ignore '.changeset/**' --ignore '.git/**' --ignore 'node_modules/**' --ignore 'pnpm-lock.yaml' --initial --silent --comand 'prettier --write --ignore-unknown {path} && stylelint {path}'", |
| 54 | + "format:production": "prettier . --debug-check", |
49 | 55 | "lint": "per-env", |
50 | | - "lint:development": "npm-run-all --print-name lint:development:*", |
51 | | - "lint:development:eslint": "tsc --outDir ./dist && eslint . --fix", |
| 56 | + "lint:development": "npm-run-all --parallel --print-name lint:development:*", |
| 57 | + "lint:development:eslint": "chokidar ./eslint-config.js ./src/eslint/** ./src/*.ts ./src/*.*.ts --initial --silent --command 'tsc --noCheck --outDir ./dist && eslint {path} --fix'", |
52 | 58 | "lint:development:lit-analyzer": "lit-analyzer **/*.ts", |
53 | | - "lint:production": "npm-run-all --parallel --aggregate-output --print-label lint:production:*", |
54 | | - "lint:production:eslint": "tsc --outDir ./dist && eslint .", |
| 59 | + "lint:development:stylelint": "chokidar ./.stylelintrc.js ./src/stylelint/** ./src/*.styles.ts ./src/*.*.styles.ts --initial --silent --command 'tsc --noCheck --outDir ./dist && stylelint {path} --custom-syntax postcss-lit --fix'", |
| 60 | + "lint:production": "npm-run-all --aggregate-output --print-label --parallel lint:production:*", |
| 61 | + "lint:production:eslint": "tsc --noCheck --outDir ./dist && eslint .", |
55 | 62 | "lint:production:lit-analyzer": "lit-analyzer **/*.ts", |
56 | | - "typecheck": "tsc --noEmit", |
| 63 | + "lint:production:stylelint": "tsc --noCheck --outDir ./dist && stylelint '**/*.styles.ts' --custom-syntax postcss-lit --no-color", |
57 | 64 | "test": "per-env", |
58 | | - "test:development": "npm-run-all --parallel test:development:serve test:development:web-test-runner start:production:stylesheets", |
59 | | - "test:development:serve": "npx http-server dist/coverage/lcov-report --silent", |
60 | | - "test:development:web-test-runner": "web-test-runner --watch", |
61 | | - "test:development:vitest": "vitest --config ./vitest.config.js", |
62 | | - "test:development:vitest:comment": "Vitest is excluded from `test:development` because it muddies the console when running alongside Web Test Runner.", |
63 | | - "test:production": "npm-run-all --parallel test:production:* start:production:stylesheets --aggregate-output --print-label", |
64 | | - "test:production:vitest": "vitest run --config ./vitest.config.js", |
65 | | - "test:production:web-test-runner": "web-test-runner", |
| 65 | + "test:development": "pnpm start:production:stylesheets && npm-run-all --parallel test:development:components test:development:serve-component-coverage", |
| 66 | + "test:development:components": "web-test-runner --watch", |
| 67 | + "test:development:lint-rules": "vitest --config ./vitest.config.js & chokidar './src/eslint/**' './src/stylelint/**' --ignore './src/eslint/rules/*.test.ts' './src/stylelint/*.test.ts' --initial --silent --command 'tsc --noCheck --outDir ./dist'", |
| 68 | + "test:development:lint-rules:comment": "Excluded from `test:development` because Vitest muddies the console when running alongside Web Test Runner.", |
| 69 | + "test:development:serve-component-coverage": "npx http-server dist/coverage/lcov-report --silent", |
| 70 | + "test:production": "pnpm start:production:stylesheets && npm-run-all --aggregate-output --print-label --parallel test:production:*", |
| 71 | + "test:production:lint-rules": "tsc --noCheck --outDir ./dist && vitest run --config ./vitest.config.js", |
| 72 | + "test:production:components": "web-test-runner", |
| 73 | + "typecheck": "per-env", |
| 74 | + "typecheck:development": "tsc --outDir ./dist -w", |
| 75 | + "typecheck:production": "tsc --outDir ./dist", |
66 | 76 | "postinstall": "pnpm dlx [email protected] install --with-deps", |
67 | 77 | "prepare": "is-ci || husky install", |
68 | 78 | "release": "changeset publish" |
|
106 | 116 | "@web/test-runner-commands": "^0.9.0", |
107 | 117 | "@web/test-runner-playwright": "^0.11.0", |
108 | 118 | "chalk": "^5.3.0", |
| 119 | + "chokidar-cli": "^3.0.0", |
| 120 | + "comment-parser": "^1.4.1", |
109 | 121 | "esbuild": "^0.25.0", |
110 | 122 | "eslint": "^9.17.0", |
111 | 123 | "eslint-config-prettier": "^10.0.1", |
|
123 | 135 | "lit": "^3.2.1", |
124 | 136 | "lit-analyzer": "^2.0.3", |
125 | 137 | "minify-literals": "^1.0.10", |
| 138 | + "node-html-parser": "^7.0.1", |
126 | 139 | "npm-run-all2": "^7.0.2", |
127 | 140 | "per-env": "^1.0.2", |
128 | 141 | "postcss": "^8.4.49", |
|
0 commit comments