@akinon/projectzero 1.33.0 → 1.33.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @akinon/projectzero
2
2
 
3
+ ## 1.33.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 0d1553f: ZERO-2633: fix .env file creation for create command
8
+
9
+ ## 1.33.1
10
+
11
+ ### Patch Changes
12
+
13
+ - 10123f9: ZERO-2632: rename projectzero-cli to projectzero
14
+
3
15
  ## 1.33.0
4
16
 
5
17
  ### Minor Changes
@@ -1,5 +1,31 @@
1
1
  # projectzeronext
2
2
 
3
+ ## 1.33.2
4
+
5
+ ### Patch Changes
6
+
7
+ - @akinon/next@1.33.2
8
+ - @akinon/pz-b2b@1.33.2
9
+ - @akinon/pz-gpay@1.33.2
10
+ - @akinon/pz-masterpass@1.33.2
11
+ - @akinon/pz-one-click-checkout@1.33.2
12
+ - @akinon/pz-otp@1.33.2
13
+ - @akinon/pz-pay-on-delivery@1.33.2
14
+
15
+ ## 1.33.1
16
+
17
+ ### Patch Changes
18
+
19
+ - 10123f9: ZERO-2632: rename projectzero-cli to projectzero
20
+ - Updated dependencies [10123f9]
21
+ - @akinon/next@1.33.1
22
+ - @akinon/pz-b2b@1.33.1
23
+ - @akinon/pz-gpay@1.33.1
24
+ - @akinon/pz-masterpass@1.33.1
25
+ - @akinon/pz-one-click-checkout@1.33.1
26
+ - @akinon/pz-otp@1.33.1
27
+ - @akinon/pz-pay-on-delivery@1.33.1
28
+
3
29
  ## 1.33.0
4
30
 
5
31
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "projectzeronext",
3
- "version": "1.33.0",
3
+ "version": "1.33.2",
4
4
  "private": true,
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -22,13 +22,13 @@
22
22
  "prestart": "pz-prestart"
23
23
  },
24
24
  "dependencies": {
25
- "@akinon/next": "1.33.0",
26
- "@akinon/pz-b2b": "1.33.0",
27
- "@akinon/pz-gpay": "1.33.0",
28
- "@akinon/pz-masterpass": "1.33.0",
29
- "@akinon/pz-one-click-checkout": "1.33.0",
30
- "@akinon/pz-otp": "1.33.0",
31
- "@akinon/pz-pay-on-delivery": "1.33.0",
25
+ "@akinon/next": "1.33.2",
26
+ "@akinon/pz-b2b": "1.33.2",
27
+ "@akinon/pz-gpay": "1.33.2",
28
+ "@akinon/pz-masterpass": "1.33.2",
29
+ "@akinon/pz-one-click-checkout": "1.33.2",
30
+ "@akinon/pz-otp": "1.33.2",
31
+ "@akinon/pz-pay-on-delivery": "1.33.2",
32
32
  "@hookform/resolvers": "2.9.0",
33
33
  "@next/third-parties": "14.1.0",
34
34
  "@react-google-maps/api": "2.17.1",
@@ -52,7 +52,7 @@
52
52
  "yup": "0.32.11"
53
53
  },
54
54
  "devDependencies": {
55
- "@akinon/eslint-plugin-projectzero": "1.33.0",
55
+ "@akinon/eslint-plugin-projectzero": "1.33.2",
56
56
  "@semantic-release/changelog": "6.0.2",
57
57
  "@semantic-release/exec": "6.0.3",
58
58
  "@semantic-release/git": "10.0.1",
@@ -40,5 +40,7 @@
40
40
  ".next/types/**/*.ts",
41
41
  "../../packages/**/*"
42
42
  ],
43
- "exclude": ["node_modules", "../../packages/projectzero-cli/app-template"]
43
+ "exclude": ["node_modules",
44
+ "../../packages/projectzero/app-template"
45
+ ]
44
46
  }
@@ -104,6 +104,10 @@ function updatePluginsFile(projectDir: string): void {
104
104
  fs.writeFileSync(pluginsFilePath, content, { encoding: 'utf8' });
105
105
  }
106
106
 
107
+ function createEnvironmentFile(projectDir: string) {
108
+ fs.copyFileSync(`${projectDir}/.env.example`, `${projectDir}/.env`);
109
+ }
110
+
107
111
  export default async (): Promise<void> => {
108
112
  const minNodeVersion = 18;
109
113
  const currentNodeVersion = parseInt(
@@ -132,12 +136,13 @@ export default async (): Promise<void> => {
132
136
 
133
137
  const templatesDir = path.resolve(
134
138
  __dirname,
135
- '../../../projectzero-cli/app-template'
139
+ '../../../projectzero/app-template'
136
140
  );
137
141
 
138
142
  fs.cpSync(templatesDir, projectDir, { recursive: true });
139
143
 
140
144
  updatePluginsFile(projectDir);
145
+ createEnvironmentFile(projectDir);
141
146
 
142
147
  if (answers.projectDescription) {
143
148
  updateFileContents(path.join(projectDir, 'akinon.json'), {
@@ -109,6 +109,9 @@ function updatePluginsFile(projectDir) {
109
109
  const content = 'module.exports = [];';
110
110
  fs.writeFileSync(pluginsFilePath, content, { encoding: 'utf8' });
111
111
  }
112
+ function createEnvironmentFile(projectDir) {
113
+ fs.copyFileSync(`${projectDir}/.env.example`, `${projectDir}/.env`);
114
+ }
112
115
  exports.default = () => __awaiter(void 0, void 0, void 0, function* () {
113
116
  const minNodeVersion = 18;
114
117
  const currentNodeVersion = parseInt(process.version.replace('v', '').split('.')[0]);
@@ -122,9 +125,10 @@ exports.default = () => __awaiter(void 0, void 0, void 0, function* () {
122
125
  if (!fs.existsSync(projectDir)) {
123
126
  fs.mkdirSync(projectDir, { recursive: true });
124
127
  }
125
- const templatesDir = path_1.default.resolve(__dirname, '../../../projectzero-cli/app-template');
128
+ const templatesDir = path_1.default.resolve(__dirname, '../../../projectzero/app-template');
126
129
  fs.cpSync(templatesDir, projectDir, { recursive: true });
127
130
  updatePluginsFile(projectDir);
131
+ createEnvironmentFile(projectDir);
128
132
  if (answers.projectDescription) {
129
133
  updateFileContents(path_1.default.join(projectDir, 'akinon.json'), {
130
134
  description: answers.projectDescription
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/projectzero",
3
- "version": "1.33.0",
3
+ "version": "1.33.2",
4
4
  "private": false,
5
5
  "description": "CLI tool to manage your Project Zero Next project",
6
6
  "bin": {