From c6a549fac10d7ce55e5bc65b8dcedd291b801a79 Mon Sep 17 00:00:00 2001 From: Benny Powers Date: Thu, 26 Mar 2026 09:32:58 +0200 Subject: [PATCH] fix(tools): restore missing files in @patternfly/create-element published package Closes #2967 Assisted-By: Claude Opus 4.6 (1M context) --- .changeset/fix-create-element-publish.md | 4 ++++ tools/create-element/.npmignore | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 .changeset/fix-create-element-publish.md create mode 100644 tools/create-element/.npmignore diff --git a/.changeset/fix-create-element-publish.md b/.changeset/fix-create-element-publish.md new file mode 100644 index 0000000000..a362bea42a --- /dev/null +++ b/.changeset/fix-create-element-publish.md @@ -0,0 +1,4 @@ +--- +"@patternfly/create-element": patch +--- +Fixed missing files in published package that prevented `npm run new` from working diff --git a/tools/create-element/.npmignore b/tools/create-element/.npmignore new file mode 100644 index 0000000000..5ea712c799 --- /dev/null +++ b/tools/create-element/.npmignore @@ -0,0 +1,4 @@ +# Override .gitignore so that compiled .js and .d.ts files +# are included in the published package via the "files" field +# in package.json. Without this, newer npm versions apply +# .gitignore patterns as a filter even when "files" is set.