Caleb Porzio 3 gadi atpakaļ
vecāks
revīzija
5eaec91ed8

+ 1 - 1
packages/docs/src/en/essentials/installation.md

@@ -62,7 +62,7 @@ Alpine.start()
 > The `window.Alpine = Alpine` bit is optional, but is nice to have for freedom and flexibility. Like when tinkering with Alpine from the devtools for example.
 
 
-> If you imported Alpine into a bundle, you have to make sure you are registering any extension code IN BETWEEN when you import the `Alpine` global object, and when you initialize Alpine by calling `Alpine.start()`. 
+> If you imported Alpine into a bundle, you have to make sure you are registering any extension code IN BETWEEN when you import the `Alpine` global object, and when you initialize Alpine by calling `Alpine.start()`.
 
 
 [→ Read more about extending Alpine](/advanced/extending)

+ 3 - 2
packages/intersect/package.json

@@ -1,10 +1,11 @@
 {
     "name": "@alpinejs/intersect",
-    "version": "3.0.0-alpha.0",
-    "description": "Trigger JavaScript when an element enters or leaves the viewport",
+    "version": "3.2.1",
+    "description": "Trigger JavaScript when an element enters the viewport",
     "author": "Caleb Porzio",
     "license": "MIT",
     "main": "dist/module.cjs.js",
     "module": "dist/module.esm.js",
+    "unpkg": "dist/cdn.min.js",
     "dependencies": {}
 }

+ 5 - 0
scripts/release.js

@@ -38,6 +38,8 @@ function writeNewAlpineVersion() {
 
     writeToPackageDotJson('alpinejs', 'version', version)
     console.log('Bumping alpinejs package.json: '+version);
+    writeToPackageDotJson('intersect', 'version', version)
+    console.log('Bumping @alpinejs/intersect package.json: '+version);
 }
 
 function writeNewDocsVersion() {
@@ -59,6 +61,9 @@ function publish() {
     console.log('Publishing @alpinejs/docs on NPM...');
     runFromPackage('docs', 'npm publish --access public')
 
+    console.log('Publishing @alpinejs/intersect on NPM...');
+    runFromPackage('docs', 'npm publish --access public')
+
     log('\n\nFinished!')
 }