From da4e8a76b33c42b178f6e70ab2df0e698442adce Mon Sep 17 00:00:00 2001 From: The Nguyen <6950941+treoden@users.noreply.github.com> Date: Fri, 3 Jan 2025 13:44:04 +0700 Subject: [PATCH] chore: Version 1.2.2 --- packages/evershop/README.md | 29 ++++++++++++++++++----------- packages/evershop/package.json | 3 ++- packages/evershop/postpack.js | 30 ++++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+), 12 deletions(-) create mode 100644 packages/evershop/postpack.js diff --git a/packages/evershop/README.md b/packages/evershop/README.md index 0dfa8e594..e6beaf467 100644 --- a/packages/evershop/README.md +++ b/packages/evershop/README.md @@ -1,6 +1,6 @@

      

-EverShop Logo +EverShop Logo

EverShop

@@ -58,7 +58,10 @@ Explore our demo store.

- evershop-backend-demo + evershop-backend-demo + + + evershop-store-demo

Demo user: @@ -66,12 +69,6 @@ Explore our demo store. Email: demo@evershop.io
Password: 123456 -

- - evershop-store-demo - -

- ## Support If you like my work, feel free to: @@ -80,6 +77,19 @@ If you like my work, feel free to: - [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)][tweet] about EverShop. Thank you! [tweet]: https://twitter.com/intent/tweet?url=https%3A%2F%2Fgithub.com%2Fevershopcommerce%2Fevershop&text=Awesome%20React%20Ecommerce%20Project&hashtags=react,ecommerce,expressjs,graphql + +### Sponsors + + + + + +
+ +## Contributing + +EverShop is an open-source project. We are committed to a fully transparent development process and appreciate highly any contributions. Whether you are helping us fix bugs, proposing new features, improving our documentation or spreading the word - we would love to have you as part of the EverShop community. + ### Ask a question about EverShop You can ask questions, and participate in discussions about EverShop-related topics in the EverShop Discord channel. @@ -98,9 +108,6 @@ If you have an idea, or you're missing a capability that would make development If a similar feature request already exists, don't forget to leave a "+1". If you add some more information such as your thoughts and vision about the feature, your comments will be embraced warmly :) -## Contributing - -EverShop is an open-source project. We are committed to a fully transparent development process and appreciate highly any contributions. Whether you are helping us fix bugs, proposing new features, improving our documentation or spreading the word - we would love to have you as part of the EverShop community. Please refer to our [Contribution Guidelines](./CONTRIBUTING.md) and [Code of Conduct](./CODE_OF_CONDUCT.md). diff --git a/packages/evershop/package.json b/packages/evershop/package.json index 7f08461e7..ca3de6bfc 100644 --- a/packages/evershop/package.json +++ b/packages/evershop/package.json @@ -1,6 +1,6 @@ { "name": "@evershop/evershop", - "version": "1.2.1", + "version": "1.2.2", "description": "The React Ecommerce platform. Built with React and Postgres. Open-source and free. Fast and customizable.", "files": [ "bin", @@ -12,6 +12,7 @@ "scripts": { "prepublishOnly": "node prepublish.js", "prepack": "node prepublish.js", + "postpack": "node postpack.js", "dev": "evershop dev", "build": "evershop build", "start": "evershop start", diff --git a/packages/evershop/postpack.js b/packages/evershop/postpack.js new file mode 100644 index 000000000..811bb43ab --- /dev/null +++ b/packages/evershop/postpack.js @@ -0,0 +1,30 @@ +const fs = require('fs'); +const path = require('path'); + +// Get the current version of the package from the nearest package.json file +const packageJson = require(path.resolve(__dirname, 'package.json')); +const {version} = packageJson; +// Get the --pack-destination from the command line arguments +// Create a package.json file in the packDestination directory with dependencies is the package itself +fs.writeFileSync( + path.resolve(process.env.npm_config_pack_destination, 'package.json'), + JSON.stringify( + { + name: packageJson.name, + version, + dependencies: { + '@evershop/evershop': `file:./evershop-evershop-${version}.tgz` + }, + scripts: { + setup: 'evershop install', + start: 'evershop start', + 'start:debug': 'evershop start:debug', + build: 'evershop build', + dev: 'evershop dev', + 'user:create': 'evershop user:create' + } + }, + null, + 2 + ) +);