Skip to content

Commit c85dbdc

Browse files
committed
fix: Add pre-built bundles to the npm distribution again.
This was lost in a previous Makefile update. Now you can again reference jsdelivr and and unpkg to include bundles.
1 parent 1dd1c3a commit c85dbdc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ bundle-pre:
5656

5757
# Compile the bundle.
5858
.PHONY: bundle
59-
bundle: bundle-pre stamp-yarn
59+
bundle: clean-dist bundle-pre stamp-yarn
6060
ifneq "$(PACKAGE_NAME)" "$(PACKAGE_DEV)"
6161
@# Do not build a bundle for @patternslib/dev
6262
$(YARN) run build
6363
endif
6464

6565

6666
# Create a ZIP file from the bundle which is uploaded to the GitHub release tag.
67-
release-zip: clean-dist bundle
67+
release-zip:
6868
ifneq "$(PACKAGE_NAME)" "$(PACKAGE_DEV)"
6969
@# Do not create a zip release for @patternslib/dev
7070
$(eval PACKAGE_VERSION := $(shell node -p "require('./package.json').version"))
@@ -128,7 +128,7 @@ release-github: prepare-release release-zip
128128
-rm $(BUNDLE_NAME)-bundle-$(PACKAGE_VERSION).zip
129129

130130

131-
release: clean install check release-npm release-github
131+
release: clean install check bundle release-npm release-github
132132
@# Note: If you want to include the compiled bundle in your npm package you
133133
@# have to allow it in a .npmignore file.
134134

0 commit comments

Comments
 (0)