create-blocklet 0.2.17 → 0.2.18

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/index.js CHANGED
@@ -70,14 +70,6 @@ const TYPES = [
70
70
  },
71
71
  ];
72
72
 
73
- const SERVICES = [
74
- {
75
- name: 'auth',
76
- display: 'Auth Service',
77
- color: yellow,
78
- },
79
- ];
80
-
81
73
  const renameFiles = {
82
74
  _gitignore: '.gitignore',
83
75
  '_eslintrc.js': '.eslintrc.js',
@@ -161,19 +153,6 @@ async function init() {
161
153
  });
162
154
  },
163
155
  },
164
- {
165
- type: 'multiselect',
166
- name: 'services',
167
- message: 'Choose blocklet services:',
168
- initial: 0,
169
- choices: SERVICES.map((service) => {
170
- const serviceColor = service.color;
171
- return {
172
- title: serviceColor(service.display),
173
- value: service.name,
174
- };
175
- }),
176
- },
177
156
  ],
178
157
  {
179
158
  onCancel: () => {
@@ -187,7 +166,7 @@ async function init() {
187
166
  }
188
167
 
189
168
  // user choice associated with prompts
190
- const { type, framework, overwrite, packageName, services } = result;
169
+ const { type, framework, overwrite, packageName } = result;
191
170
 
192
171
  const root = path.join(cwd, targetDir);
193
172
 
@@ -286,19 +265,6 @@ async function init() {
286
265
  return env;
287
266
  });
288
267
 
289
- // patch blocklet services
290
- modifyBlockletYaml((yamlConfig) => {
291
- if (services.includes('auth')) {
292
- yamlConfig.interfaces[0].services = [
293
- {
294
- name: '@abtnode/auth-service',
295
- config: {
296
- blockUnauthenticated: true,
297
- },
298
- },
299
- ];
300
- }
301
- });
302
268
  // patch blocklet author
303
269
  modifyBlockletYaml((yamlConfig) => {
304
270
  // eslint-disable-next-line no-shadow
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-blocklet",
3
- "version": "0.2.17",
3
+ "version": "0.2.18",
4
4
  "exports": "./index.js",
5
5
  "type": "module",
6
6
  "repository": "git@github.com:blocklet/create-blocklet.git",
@@ -41,7 +41,7 @@ charging:
41
41
  timeout:
42
42
  start: 60
43
43
  requirements:
44
- abtnode: '>=1.4.0'
44
+ server: '>=1.6.29'
45
45
  os: '*'
46
46
  cpu: '*'
47
47
  scripts:
@@ -40,7 +40,7 @@ charging:
40
40
  timeout:
41
41
  start: 60
42
42
  requirements:
43
- abtnode: '>=1.4.0'
43
+ server: '>=1.6.29'
44
44
  os: '*'
45
45
  cpu: '*'
46
46
  scripts:
@@ -39,7 +39,7 @@ charging:
39
39
  timeout:
40
40
  start: 60
41
41
  requirements:
42
- abtnode: '>=1.4.0'
42
+ server: '>=1.6.29'
43
43
  os: '*'
44
44
  cpu: '*'
45
45
  scripts:
@@ -39,7 +39,7 @@ charging:
39
39
  timeout:
40
40
  start: 60
41
41
  requirements:
42
- abtnode: '>=1.4.0'
42
+ server: '>=1.6.29'
43
43
  os: '*'
44
44
  cpu: '*'
45
45
  scripts:
@@ -39,7 +39,7 @@ charging:
39
39
  timeout:
40
40
  start: 60
41
41
  requirements:
42
- abtnode: '>=1.4.0'
42
+ server: '>=1.6.29'
43
43
  os: '*'
44
44
  cpu: '*'
45
45
  scripts:
@@ -39,7 +39,7 @@ charging:
39
39
  timeout:
40
40
  start: 60
41
41
  requirements:
42
- abtnode: '>=1.4.0'
42
+ server: '>=1.6.29'
43
43
  os: '*'
44
44
  cpu: '*'
45
45
  scripts: