@vidavidorra/create-project 1.0.0 → 1.0.1

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.
@@ -69,13 +69,13 @@ declare const schema: z.ZodObject<{
69
69
  }, {
70
70
  node: ">=18";
71
71
  }>;
72
- publishConfig: z.ZodObject<{
72
+ publishConfig: z.ZodOptional<z.ZodObject<{
73
73
  access: z.ZodLiteral<"public">;
74
74
  }, "strict", z.ZodTypeAny, {
75
75
  access: "public";
76
76
  }, {
77
77
  access: "public";
78
- }>;
78
+ }>>;
79
79
  }, "strict", z.ZodTypeAny, {
80
80
  type: "module";
81
81
  description: string;
@@ -108,15 +108,15 @@ declare const schema: z.ZodObject<{
108
108
  engines: {
109
109
  node: ">=18";
110
110
  };
111
- publishConfig: {
112
- access: "public";
113
- };
114
111
  private?: boolean | undefined;
115
112
  exports?: string | undefined;
116
113
  files?: ["./dist/**/!(*.test).{js,d.ts,cjs}", ...string[]] | undefined;
117
114
  ava?: Record<string, unknown> | undefined;
118
115
  c8?: Record<string, unknown> | undefined;
119
116
  dependencies?: Record<string, string> | undefined;
117
+ publishConfig?: {
118
+ access: "public";
119
+ } | undefined;
120
120
  }, {
121
121
  type: "module";
122
122
  description: string;
@@ -149,15 +149,15 @@ declare const schema: z.ZodObject<{
149
149
  engines: {
150
150
  node: ">=18";
151
151
  };
152
- publishConfig: {
153
- access: "public";
154
- };
155
152
  private?: boolean | undefined;
156
153
  exports?: string | undefined;
157
154
  files?: ["./dist/**/!(*.test).{js,d.ts,cjs}", ...string[]] | undefined;
158
155
  ava?: Record<string, unknown> | undefined;
159
156
  c8?: Record<string, unknown> | undefined;
160
157
  dependencies?: Record<string, string> | undefined;
158
+ publishConfig?: {
159
+ access: "public";
160
+ } | undefined;
161
161
  }>;
162
162
  type PackageJson = z.infer<typeof schema>;
163
163
  declare class Package extends File {
@@ -196,15 +196,15 @@ declare class Package extends File {
196
196
  engines: {
197
197
  node: ">=18";
198
198
  };
199
- publishConfig: {
200
- access: "public";
201
- };
202
199
  private?: boolean | undefined;
203
200
  exports?: string | undefined;
204
201
  files?: ["./dist/**/!(*.test).{js,d.ts,cjs}", ...string[]] | undefined;
205
202
  ava?: Record<string, unknown> | undefined;
206
203
  c8?: Record<string, unknown> | undefined;
207
204
  dependencies?: Record<string, string> | undefined;
205
+ publishConfig?: {
206
+ access: "public";
207
+ } | undefined;
208
208
  };
209
209
  process(): this;
210
210
  }
@@ -49,7 +49,10 @@ const schema = z
49
49
  dependencies: z.record(z.string()).optional(),
50
50
  devDependencies: z.record(z.string()),
51
51
  engines: z.object({ node: z.literal('>=18') }).strict(),
52
- publishConfig: z.object({ access: z.literal('public') }).strict(),
52
+ publishConfig: z
53
+ .object({ access: z.literal('public') })
54
+ .strict()
55
+ .optional(),
53
56
  })
54
57
  .strict();
55
58
  class Package extends File {
@@ -78,6 +81,7 @@ class Package extends File {
78
81
  }
79
82
  else {
80
83
  this._package.private = true;
84
+ delete this._package.publishConfig;
81
85
  }
82
86
  const devDependencies = [
83
87
  '@commitlint/cli',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vidavidorra/create-project",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "private": false,
5
5
  "description": "Interactively create a GitHub project.",
6
6
  "homepage": "https://github.com/vidavidorra/create-project#readme",