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