Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@
},
"lint-staged": {
"*.{js,mjs,ts}": "eslint --cache",
"*.{css,js,json,md,mjs,ts,yaml,yml}": "prettier --write",
"{packages/**/package.json,scripts/tasks/check-and-rewrite-package-json.js}": "node ./scripts/tasks/check-and-rewrite-package-json.js",
"{LICENSE-CORE.md,**/LICENSE.md,yarn.lock,scripts/tasks/generate-license-files.js,scripts/shared/bundled-dependencies.js}": "node ./scripts/tasks/generate-license-files.js",
"*.{css,js,json,md,mjs,ts,yaml,yml}": "prettier --check",
"{packages/**/package.json,scripts/tasks/check-and-rewrite-package-json.js}": "node ./scripts/tasks/check-and-rewrite-package-json.js --test",
"{LICENSE-CORE.md,**/LICENSE.md,yarn.lock,scripts/tasks/generate-license-files.js,scripts/shared/bundled-dependencies.js}": "node ./scripts/tasks/generate-license-files.js --test",
Comment on lines +80 to +82
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changes git commit to only validate files pre-commit, rather than edit them. The auto-changing annoyed me when I tried to test this change!

"*.{only,skip}": "eslint --cache --plugin '@lwc/eslint-plugin-lwc-internal' --rule '@lwc/lwc-internal/forbidden-filename: error'"
},
"workspaces": [
Expand Down
3 changes: 2 additions & 1 deletion packages/@lwc/ssr-client-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
"types": "dist/index.d.ts",
"files": [
"dist/**/*.js",
"dist/**/*.d.ts"
"dist/**/*.d.ts",
"register-lwc-style.js"
],
"scripts": {
"build": "rollup --config ../../../scripts/rollup/rollup.config.js",
Expand Down
2 changes: 1 addition & 1 deletion scripts/tasks/check-and-rewrite-package-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ for (const dir of globSync('./packages/@lwc/*')) {
module: 'dist/index.js',
types: 'dist/index.d.ts',
// It's important _not_ to use `./dist` here (with the `./`), because npm does not understand that
files: ['dist/**/*.js', 'dist/**/*.d.ts'],
files: Array.from(new Set(['dist/**/*.js', 'dist/**/*.d.ts', ...pkg.files])),
scripts: {
build: 'rollup --config ../../../scripts/rollup/rollup.config.js',
dev: 'rollup --config ../../../scripts/rollup/rollup.config.js --watch --no-watch.clearScreen',
Expand Down