@quilted/create 0.1.84 → 0.1.86
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 +12 -0
- package/build/cjs/package.cjs +54 -95
- package/build/cjs/shared/prompts.cjs +2 -2
- package/build/esm/package.mjs +55 -96
- package/build/esm/shared/prompts.mjs +2 -2
- package/build/esnext/package.esnext +55 -96
- package/build/esnext/shared/prompts.esnext +2 -2
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/typescript/package.d.ts.map +1 -1
- package/build/typescript/shared.d.ts +1 -1
- package/build/typescript/shared.d.ts.map +1 -1
- package/package.json +1 -1
- package/source/package.ts +92 -158
- package/source/shared/prompts.ts +2 -2
- package/source/shared.ts +4 -0
- package/templates/github/_github/workflows/ci.yml +4 -4
- package/templates/package-simple/README.md +1 -0
- package/templates/package-simple/package.json +51 -0
- package/templates/package-simple/rollup.config.js +3 -0
- package/templates/package-simple/source/index.test.ts +9 -0
- package/templates/package-simple/source/index.ts +3 -0
- package/templates/package-simple/tsconfig.json +10 -0
- package/templates/workspace-simple/_gitignore +13 -0
- package/templates/workspace-simple/_nvmrc +1 -0
- package/templates/workspace-simple/_prettierignore +8 -0
- package/templates/workspace-simple/package.json +26 -0
- package/templates/workspace-simple/tsconfig.json +8 -0
package/source/package.ts
CHANGED
|
@@ -31,17 +31,15 @@ export async function createProject() {
|
|
|
31
31
|
|
|
32
32
|
if (args['--help']) {
|
|
33
33
|
const additionalOptions = stripIndent`
|
|
34
|
-
${color.cyan(`--description`)}, ${color.cyan(
|
|
34
|
+
${color.cyan(`--description [description]`)}, ${color.cyan(
|
|
35
|
+
`--no-description`,
|
|
36
|
+
)}
|
|
35
37
|
A short description of the package. If you don’t provide this option, the command will ask
|
|
36
38
|
you for a description later.
|
|
37
39
|
${color.dim(
|
|
38
40
|
`@see https://docs.npmjs.com/cli/v9/configuring-npm/package-json#description`,
|
|
39
41
|
)}
|
|
40
42
|
|
|
41
|
-
${color.cyan(`--react`)}, ${color.cyan(`--no-react`)}
|
|
42
|
-
Whether this package will use React. If you don’t provide this option, the command
|
|
43
|
-
will ask you about it later.
|
|
44
|
-
|
|
45
43
|
${color.cyan(`--public`)}, ${color.cyan(`--private`)}
|
|
46
44
|
Whether this package will be published for other projects to install. If you do not
|
|
47
45
|
provide this option, the command will ask you about it later.
|
|
@@ -53,9 +51,12 @@ export async function createProject() {
|
|
|
53
51
|
`@see https://docs.npmjs.com/cli/v9/configuring-npm/package-json#repository`,
|
|
54
52
|
)}
|
|
55
53
|
|
|
56
|
-
${color.cyan(`--registry`)}
|
|
54
|
+
${color.cyan(`--registry [registry]`)}
|
|
57
55
|
The package registry to publish this package to. This option only applies if you create
|
|
58
56
|
a public package. If you do not provide this option, it will use the default NPM registry.
|
|
57
|
+
|
|
58
|
+
${color.cyan(`--react`)}
|
|
59
|
+
Whether this package will use React. Defaults to false.
|
|
59
60
|
`;
|
|
60
61
|
|
|
61
62
|
printHelp({
|
|
@@ -101,143 +102,47 @@ export async function createProject() {
|
|
|
101
102
|
|
|
102
103
|
const rootDirectory = inWorkspace ? process.cwd() : directory;
|
|
103
104
|
const outputRoot = createOutputTarget(rootDirectory);
|
|
104
|
-
const packageTemplate = loadTemplate('package');
|
|
105
|
-
const workspaceTemplate = loadTemplate('workspace');
|
|
105
|
+
const packageTemplate = loadTemplate('package-simple');
|
|
106
|
+
const workspaceTemplate = loadTemplate('workspace-simple');
|
|
106
107
|
|
|
107
|
-
|
|
108
|
-
// are needed if we are making a monorepo or not.
|
|
109
|
-
if (!inWorkspace) {
|
|
108
|
+
if (createAsMonorepo) {
|
|
110
109
|
await workspaceTemplate.copy(directory, (file) => {
|
|
111
|
-
//
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
// We need to make some adjustments to the root package.json
|
|
115
|
-
if (file === 'package.json') return false;
|
|
116
|
-
|
|
117
|
-
return true;
|
|
110
|
+
// We will adjust the package.json before writing it
|
|
111
|
+
return file !== 'package.json';
|
|
118
112
|
});
|
|
119
113
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
const packageRelativeToRoot = path.relative(
|
|
124
|
-
rootDirectory,
|
|
125
|
-
packageDirectory,
|
|
126
|
-
);
|
|
127
|
-
const packageGlobRelativeToRoot = relativeDirectoryForDisplay(
|
|
128
|
-
path.join(packageRelativeToRoot, '*'),
|
|
129
|
-
);
|
|
130
|
-
const workspacePackageJson = JSON.parse(
|
|
131
|
-
await workspaceTemplate.read('package.json'),
|
|
132
|
-
);
|
|
133
|
-
|
|
134
|
-
workspacePackageJson.name = toValidPackageName(name!);
|
|
135
|
-
workspacePackageJson.workspaces = [packageGlobRelativeToRoot];
|
|
136
|
-
|
|
137
|
-
if (packageManager.type === 'pnpm') {
|
|
138
|
-
await outputRoot.write(
|
|
139
|
-
'pnpm-workspace.yaml',
|
|
140
|
-
await format(
|
|
141
|
-
`
|
|
142
|
-
packages:
|
|
143
|
-
- '${packageGlobRelativeToRoot}'
|
|
144
|
-
`,
|
|
145
|
-
{as: 'yaml'},
|
|
146
|
-
),
|
|
147
|
-
);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
await outputRoot.write(
|
|
151
|
-
'package.json',
|
|
152
|
-
await format(JSON.stringify(workspacePackageJson), {
|
|
153
|
-
as: 'json-stringify',
|
|
154
|
-
}),
|
|
155
|
-
);
|
|
156
|
-
} else {
|
|
157
|
-
const [projectPackageJson, projectTSConfig, workspacePackageJson] =
|
|
158
|
-
await Promise.all([
|
|
159
|
-
packageTemplate
|
|
160
|
-
.read('package.json')
|
|
161
|
-
.then((content) => JSON.parse(content)),
|
|
162
|
-
packageTemplate
|
|
163
|
-
.read('tsconfig.json')
|
|
164
|
-
.then((content) => JSON.parse(content)),
|
|
165
|
-
workspaceTemplate
|
|
166
|
-
.read('package.json')
|
|
167
|
-
.then((content) => JSON.parse(content)),
|
|
168
|
-
]);
|
|
169
|
-
|
|
170
|
-
const mergedPackageJson = mergeWorkspaceAndProjectPackageJsons(
|
|
171
|
-
projectPackageJson,
|
|
172
|
-
workspacePackageJson,
|
|
173
|
-
);
|
|
174
|
-
|
|
175
|
-
delete mergedPackageJson.workspaces;
|
|
176
|
-
|
|
177
|
-
adjustPackageJson(mergedPackageJson, {
|
|
178
|
-
name: toValidPackageName(name!),
|
|
179
|
-
description,
|
|
180
|
-
react: useReact,
|
|
181
|
-
isPublic,
|
|
182
|
-
registry: args['--registry'],
|
|
183
|
-
});
|
|
114
|
+
const workspacePackageJson = JSON.parse(
|
|
115
|
+
await workspaceTemplate.read('package.json'),
|
|
116
|
+
);
|
|
184
117
|
|
|
185
|
-
|
|
186
|
-
'package.json',
|
|
187
|
-
await format(JSON.stringify(mergedPackageJson), {
|
|
188
|
-
as: 'json-stringify',
|
|
189
|
-
}),
|
|
190
|
-
);
|
|
118
|
+
workspacePackageJson.name = toValidPackageName(name!);
|
|
191
119
|
|
|
120
|
+
if (packageManager.type === 'pnpm') {
|
|
192
121
|
await outputRoot.write(
|
|
193
|
-
'
|
|
194
|
-
await format(
|
|
122
|
+
'pnpm-workspace.yaml',
|
|
123
|
+
await format(
|
|
124
|
+
`
|
|
125
|
+
packages:
|
|
126
|
+
- './packages/*'
|
|
127
|
+
`,
|
|
128
|
+
{as: 'yaml'},
|
|
129
|
+
),
|
|
195
130
|
);
|
|
196
131
|
}
|
|
197
132
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
}
|
|
133
|
+
await outputRoot.write(
|
|
134
|
+
'package.json',
|
|
135
|
+
await format(JSON.stringify(workspacePackageJson), {
|
|
136
|
+
as: 'json-stringify',
|
|
137
|
+
}),
|
|
138
|
+
);
|
|
205
139
|
}
|
|
206
140
|
|
|
207
141
|
await packageTemplate.copy(packageDirectory, (file) => {
|
|
208
|
-
//
|
|
209
|
-
|
|
210
|
-
return partOfMonorepo;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
// We need to make some adjustments the project’s package.json, README, and Quilt config
|
|
214
|
-
return (
|
|
215
|
-
file !== 'package.json' &&
|
|
216
|
-
file !== 'quilt.project.ts' &&
|
|
217
|
-
file !== 'README.md'
|
|
218
|
-
);
|
|
142
|
+
// We will adjust the package.json and README.md before writing them
|
|
143
|
+
return file !== 'package.json' && file !== 'README.md';
|
|
219
144
|
});
|
|
220
145
|
|
|
221
|
-
let quiltProject = await packageTemplate.read('quilt.project.ts');
|
|
222
|
-
|
|
223
|
-
if (!partOfMonorepo) {
|
|
224
|
-
quiltProject = quiltProject
|
|
225
|
-
.replace('quiltPackage', 'quiltWorkspace, quiltPackage')
|
|
226
|
-
.replace('quiltPackage(', 'quiltWorkspace(), quiltPackage(');
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
if (!useReact) {
|
|
230
|
-
quiltProject = quiltProject.replace(
|
|
231
|
-
'quiltPackage()',
|
|
232
|
-
'quiltPackage({react: false})',
|
|
233
|
-
);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
await outputRoot.write(
|
|
237
|
-
path.join(packageDirectory, 'quilt.project.ts'),
|
|
238
|
-
await format(quiltProject, {as: 'typescript'}),
|
|
239
|
-
);
|
|
240
|
-
|
|
241
146
|
await outputRoot.write(
|
|
242
147
|
path.join(packageDirectory, 'README.md'),
|
|
243
148
|
(await packageTemplate.read('README.md')).replaceAll(
|
|
@@ -247,6 +152,16 @@ export async function createProject() {
|
|
|
247
152
|
);
|
|
248
153
|
|
|
249
154
|
if (partOfMonorepo) {
|
|
155
|
+
// Add the package to the workspace configuration files
|
|
156
|
+
await Promise.all([
|
|
157
|
+
addToTsConfig(packageDirectory, outputRoot),
|
|
158
|
+
addToPackageManagerWorkspaces(
|
|
159
|
+
packageDirectory,
|
|
160
|
+
outputRoot,
|
|
161
|
+
packageManager.type,
|
|
162
|
+
),
|
|
163
|
+
]);
|
|
164
|
+
|
|
250
165
|
// Write the package’s package.json (the root one was already created)
|
|
251
166
|
const projectPackageJson = JSON.parse(
|
|
252
167
|
await packageTemplate.read('package.json'),
|
|
@@ -264,7 +179,11 @@ export async function createProject() {
|
|
|
264
179
|
directory,
|
|
265
180
|
};
|
|
266
181
|
} else if (repository != null) {
|
|
267
|
-
projectPackageJson.repository = {
|
|
182
|
+
projectPackageJson.repository = {
|
|
183
|
+
type: 'git',
|
|
184
|
+
...repository,
|
|
185
|
+
directory,
|
|
186
|
+
};
|
|
268
187
|
} else {
|
|
269
188
|
projectPackageJson.repository.directory = directory;
|
|
270
189
|
}
|
|
@@ -284,15 +203,47 @@ export async function createProject() {
|
|
|
284
203
|
as: 'json-stringify',
|
|
285
204
|
}),
|
|
286
205
|
);
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
206
|
+
} else {
|
|
207
|
+
// Write the package’s package.json by combining elements of the root and
|
|
208
|
+
// package templates
|
|
209
|
+
const [projectPackageJson, workspacePackageJson] = await Promise.all([
|
|
210
|
+
packageTemplate
|
|
211
|
+
.read('package.json')
|
|
212
|
+
.then((content) => JSON.parse(content)),
|
|
213
|
+
workspaceTemplate
|
|
214
|
+
.read('package.json')
|
|
215
|
+
.then((content) => JSON.parse(content)),
|
|
295
216
|
]);
|
|
217
|
+
|
|
218
|
+
const mergedPackageJson = mergeWorkspaceAndProjectPackageJsons(
|
|
219
|
+
projectPackageJson,
|
|
220
|
+
workspacePackageJson,
|
|
221
|
+
);
|
|
222
|
+
|
|
223
|
+
adjustPackageJson(mergedPackageJson, {
|
|
224
|
+
name: toValidPackageName(name!),
|
|
225
|
+
description,
|
|
226
|
+
react: useReact,
|
|
227
|
+
isPublic,
|
|
228
|
+
registry: args['--registry'],
|
|
229
|
+
});
|
|
230
|
+
|
|
231
|
+
await outputRoot.write(
|
|
232
|
+
'package.json',
|
|
233
|
+
await format(JSON.stringify(mergedPackageJson), {
|
|
234
|
+
as: 'json-stringify',
|
|
235
|
+
}),
|
|
236
|
+
);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
if (!inWorkspace) {
|
|
240
|
+
if (setupExtras.has('github')) {
|
|
241
|
+
await loadTemplate('github').copy(directory);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
if (setupExtras.has('vscode')) {
|
|
245
|
+
await loadTemplate('vscode').copy(directory);
|
|
246
|
+
}
|
|
296
247
|
}
|
|
297
248
|
|
|
298
249
|
if (shouldInstall) {
|
|
@@ -441,7 +392,6 @@ function getArguments() {
|
|
|
441
392
|
'--extras': [String],
|
|
442
393
|
'--no-extras': Boolean,
|
|
443
394
|
'--react': Boolean,
|
|
444
|
-
'--no-react': Boolean,
|
|
445
395
|
'--public': Boolean,
|
|
446
396
|
'--private': Boolean,
|
|
447
397
|
'--registry': String,
|
|
@@ -455,7 +405,9 @@ function getArguments() {
|
|
|
455
405
|
}
|
|
456
406
|
|
|
457
407
|
async function getName(args: Arguments) {
|
|
458
|
-
|
|
408
|
+
const {_, '--name': nameArgument} = args;
|
|
409
|
+
|
|
410
|
+
let name = nameArgument ?? _[0];
|
|
459
411
|
|
|
460
412
|
if (name == null) {
|
|
461
413
|
name = await prompt({
|
|
@@ -570,21 +522,7 @@ async function getPublic(args: Arguments) {
|
|
|
570
522
|
}
|
|
571
523
|
|
|
572
524
|
async function getReact(args: Arguments) {
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
if (args['--react'] || args['--yes']) {
|
|
576
|
-
useReact = true;
|
|
577
|
-
} else if (args['--no-react']) {
|
|
578
|
-
useReact = false;
|
|
579
|
-
} else {
|
|
580
|
-
useReact = await prompt({
|
|
581
|
-
type: 'confirm',
|
|
582
|
-
message: 'Will this package depend on React?',
|
|
583
|
-
initial: true,
|
|
584
|
-
});
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
return useReact;
|
|
525
|
+
return Boolean(args['--react']);
|
|
588
526
|
}
|
|
589
527
|
|
|
590
528
|
function adjustPackageJson(
|
|
@@ -651,10 +589,6 @@ function adjustPackageJson(
|
|
|
651
589
|
delete packageJson.devDependencies['react'];
|
|
652
590
|
delete packageJson.peerDependencies['react'];
|
|
653
591
|
delete packageJson.peerDependenciesMeta['react'];
|
|
654
|
-
|
|
655
|
-
packageJson.eslintConfig.extends = packageJson.eslintConfig.extends.filter(
|
|
656
|
-
(extend: string) => !extend.includes('react'),
|
|
657
|
-
);
|
|
658
592
|
}
|
|
659
593
|
|
|
660
594
|
return packageJson;
|
package/source/shared/prompts.ts
CHANGED
|
@@ -27,7 +27,7 @@ export async function getInWorkspace(argv: BaseArguments) {
|
|
|
27
27
|
if (argv['--in-workspace']) return true;
|
|
28
28
|
if (argv['--not-in-workspace']) return false;
|
|
29
29
|
|
|
30
|
-
return fs.existsSync('
|
|
30
|
+
return fs.existsSync('pnpm-workspace.yaml');
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
export async function getCreateAsMonorepo(
|
|
@@ -63,7 +63,7 @@ export async function getPackageManager(
|
|
|
63
63
|
options?: Parameters<typeof createPackageManagerRunner>[1],
|
|
64
64
|
) {
|
|
65
65
|
const packageManager = await baseGetPackageManager(argv['--package-manager']);
|
|
66
|
-
return createPackageManagerRunner(packageManager ?? '
|
|
66
|
+
return createPackageManagerRunner(packageManager ?? 'pnpm', options);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
type Extra = 'github' | 'vscode';
|
package/source/shared.ts
CHANGED
|
@@ -7,6 +7,7 @@ export {prompt} from '@quilted/cli-kit';
|
|
|
7
7
|
export function loadTemplate(
|
|
8
8
|
name:
|
|
9
9
|
| 'package'
|
|
10
|
+
| 'package-simple'
|
|
10
11
|
| 'app-basic'
|
|
11
12
|
| 'app-empty'
|
|
12
13
|
| 'app-graphql'
|
|
@@ -14,6 +15,7 @@ export function loadTemplate(
|
|
|
14
15
|
| 'module'
|
|
15
16
|
| 'service-basic'
|
|
16
17
|
| 'workspace'
|
|
18
|
+
| 'workspace-simple'
|
|
17
19
|
| 'github'
|
|
18
20
|
| 'vscode',
|
|
19
21
|
) {
|
|
@@ -84,6 +86,7 @@ let packageRootPromise: Promise<string> | undefined;
|
|
|
84
86
|
async function templateDirectory(
|
|
85
87
|
name:
|
|
86
88
|
| 'package'
|
|
89
|
+
| 'package-simple'
|
|
87
90
|
| 'app-basic'
|
|
88
91
|
| 'app-empty'
|
|
89
92
|
| 'app-graphql'
|
|
@@ -91,6 +94,7 @@ async function templateDirectory(
|
|
|
91
94
|
| 'module'
|
|
92
95
|
| 'service-basic'
|
|
93
96
|
| 'workspace'
|
|
97
|
+
| 'workspace-simple'
|
|
94
98
|
| 'github'
|
|
95
99
|
| 'vscode',
|
|
96
100
|
) {
|
|
@@ -19,7 +19,7 @@ jobs:
|
|
|
19
19
|
steps:
|
|
20
20
|
- uses: actions/checkout@v3
|
|
21
21
|
- uses: ./.github/workflows/actions/prepare
|
|
22
|
-
-
|
|
22
|
+
- run: pnpm run lint
|
|
23
23
|
|
|
24
24
|
type-check:
|
|
25
25
|
name: Type check 🧮
|
|
@@ -27,7 +27,7 @@ jobs:
|
|
|
27
27
|
steps:
|
|
28
28
|
- uses: actions/checkout@v3
|
|
29
29
|
- uses: ./.github/workflows/actions/prepare
|
|
30
|
-
-
|
|
30
|
+
- run: pnpm run type-check
|
|
31
31
|
|
|
32
32
|
unit-tests:
|
|
33
33
|
name: Unit tests 🧪
|
|
@@ -35,7 +35,7 @@ jobs:
|
|
|
35
35
|
steps:
|
|
36
36
|
- uses: actions/checkout@v3
|
|
37
37
|
- uses: ./.github/workflows/actions/prepare
|
|
38
|
-
-
|
|
38
|
+
- run: pnpm run test
|
|
39
39
|
|
|
40
40
|
build:
|
|
41
41
|
name: Build 🏗
|
|
@@ -44,4 +44,4 @@ jobs:
|
|
|
44
44
|
steps:
|
|
45
45
|
- uses: actions/checkout@v3
|
|
46
46
|
- uses: ./.github/workflows/actions/prepare
|
|
47
|
-
-
|
|
47
|
+
- run: pnpm run build
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# `{{name}}`
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "template-package-simple",
|
|
3
|
+
"description": "<YOUR DESCRIPTION HERE>",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"private": true,
|
|
7
|
+
"publishConfig": {
|
|
8
|
+
"access": "public"
|
|
9
|
+
},
|
|
10
|
+
"version": "0.0.0",
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=18.0.0"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "https://github.com/<USER>/<REPOSITORY>"
|
|
17
|
+
},
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./build/typescript/index.d.ts",
|
|
21
|
+
"quilt:source": "./source/index.ts",
|
|
22
|
+
"quilt:esnext": "./build/esnext/index.esnext",
|
|
23
|
+
"import": "./build/esm/index.mjs",
|
|
24
|
+
"require": "./build/cjs/index.cjs"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"types": "./build/typescript/index.d.ts",
|
|
28
|
+
"sideEffects": false,
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build": "rollup --config rollup.config.js"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@types/react": "^17.0.0 || ^18.0.0"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"react": "^17.0.0 || ^18.0.0"
|
|
37
|
+
},
|
|
38
|
+
"peerDependenciesMeta": {
|
|
39
|
+
"react": {
|
|
40
|
+
"optional": true
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@quilted/testing": "^0.1.0",
|
|
45
|
+
"react": "npm:@quilted/react@^18.2.0"
|
|
46
|
+
},
|
|
47
|
+
"browserslist": [
|
|
48
|
+
"defaults and fully supports es6-module",
|
|
49
|
+
"maintained node versions"
|
|
50
|
+
]
|
|
51
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
18.17.0
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "template-workspace-simple",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.0",
|
|
5
|
+
"private": true,
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "pnpm -r run build",
|
|
8
|
+
"lint": "prettier --write --cache .",
|
|
9
|
+
"test": "vitest",
|
|
10
|
+
"type-check": "tsc --build --pretty"
|
|
11
|
+
},
|
|
12
|
+
"devDependencies": {
|
|
13
|
+
"@quilted/rollup": "^0.1.11",
|
|
14
|
+
"@quilted/typescript": "^0.2.0",
|
|
15
|
+
"rollup": "^4.1.0",
|
|
16
|
+
"prettier": "^3.0.0",
|
|
17
|
+
"typescript": "^5.2.0",
|
|
18
|
+
"vitest": "^0.34.0"
|
|
19
|
+
},
|
|
20
|
+
"prettier": {
|
|
21
|
+
"arrowParens": "always",
|
|
22
|
+
"bracketSpacing": false,
|
|
23
|
+
"singleQuote": true,
|
|
24
|
+
"trailingComma": "all"
|
|
25
|
+
}
|
|
26
|
+
}
|