From 376d3bac248a4bb5e91e87c6d16b6e54e0cf12c6 Mon Sep 17 00:00:00 2001 From: Ben Allfree Date: Sun, 22 Mar 2020 09:31:13 -0700 Subject: [PATCH 1/6] npm package compatibility --- package.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 3be5b354..7df17764 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,9 @@ { - "name": "ziggy", + "name": "laravel-ziggy", "version": "0.5.0", "description": "Generates a Blade directive exporting all of your named Laravel routes. Also provides a nice route() helper function in JavaScript.", "main": "src/js/route.js", + "browser": "dist/js/route.min.js", "directories": { "test": "tests/js" }, @@ -31,12 +32,13 @@ "mocha": "^6.2.0", "mocha-webpack": "^2.0.0-beta.0", "moxios": "^0.4.0", - "qs": "^6.8.0", "unminified-webpack-plugin": "^2.0.0", "webpack": "^4.39.3", "webpack-cli": "^3.3.7" }, - "dependencies": {}, + "dependencies": { + "qs": "^6.8.0" + }, "engines": { "node": ">= 8.9" } From ff953ed7c2beadf4cdce108add795b5c50f7818a Mon Sep 17 00:00:00 2001 From: Ben Allfree Date: Sun, 22 Mar 2020 09:45:04 -0700 Subject: [PATCH 2/6] More npm+webpack+rollup compat --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 7df17764..3641a88a 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,8 @@ "name": "laravel-ziggy", "version": "0.5.0", "description": "Generates a Blade directive exporting all of your named Laravel routes. Also provides a nice route() helper function in JavaScript.", - "main": "src/js/route.js", + "module": "src/js/route.js", + "main": "dist/js/route.min.js", "browser": "dist/js/route.min.js", "directories": { "test": "tests/js" From 25541f75b42dca89e7d9147258c8f4ee3400615a Mon Sep 17 00:00:00 2001 From: Ben Allfree Date: Mon, 23 Mar 2020 03:05:58 -0700 Subject: [PATCH 3/6] Added files --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index 3641a88a..d649116d 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,10 @@ "module": "src/js/route.js", "main": "dist/js/route.min.js", "browser": "dist/js/route.min.js", + "files": [ + "src/js", + "dist" + ], "directories": { "test": "tests/js" }, From d7d4be544595ce2b5c851fb0ee7f0b2510e846c6 Mon Sep 17 00:00:00 2001 From: Ben Allfree Date: Mon, 23 Mar 2020 03:08:16 -0700 Subject: [PATCH 4/6] prepublish --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index d649116d..0ae3f0f9 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,8 @@ "build": "NODE_ENV=production webpack --progress", "build:watch": "npm run build -- --watch", "test": "NODE_ENV=test mocha-webpack 'tests/js/**/*.js'", - "test:watch": "npm run test -- --watch" + "test:watch": "npm run test -- --watch", + "prepublishOnly": "npm run build" }, "devDependencies": { "@babel/core": "^7.5.5", From 67745d0a9fd82bf6baf91e169b2db6bcb1eb1062 Mon Sep 17 00:00:00 2001 From: Jacob Baker-Kretzmar Date: Fri, 1 May 2020 15:41:15 -0400 Subject: [PATCH 5/6] Update package name and version --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0ae3f0f9..59b24a29 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "laravel-ziggy", - "version": "0.5.0", + "name": "ziggy-js", + "version": "0.9.1", "description": "Generates a Blade directive exporting all of your named Laravel routes. Also provides a nice route() helper function in JavaScript.", "module": "src/js/route.js", "main": "dist/js/route.min.js", From 4459a33779a45736201c3bc605fdb2ac85c3bf56 Mon Sep 17 00:00:00 2001 From: Jacob Baker-Kretzmar Date: Fri, 1 May 2020 15:53:30 -0400 Subject: [PATCH 6/6] Point main to src/js/route.js --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 59b24a29..cd0db94e 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.9.1", "description": "Generates a Blade directive exporting all of your named Laravel routes. Also provides a nice route() helper function in JavaScript.", "module": "src/js/route.js", - "main": "dist/js/route.min.js", + "main": "src/js/route.js", "browser": "dist/js/route.min.js", "files": [ "src/js",