create-jst 0.4.0 → 0.4.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-jst",
3
- "version": "0.4.0",
3
+ "version": "0.4.3",
4
4
  "description": "Create a web application from the JST template.",
5
5
  "type": "module",
6
6
  "packageManager": "npm@11.6.2",
@@ -3,7 +3,7 @@ export const PRIMARY_COLORS = ['dark', 'gray', 'red', 'pink', 'grape', 'violet',
3
3
  export const PACKAGE_MANAGERS = ['npm', 'pnpm']
4
4
  export const STYLE_LANGUAGES = ['css', 'scss']
5
5
  export const EXAMPLES = ['clean', 'showcase']
6
- export const TEMPLATE_SOURCE = 'jst-stack/jst#v0.4.0'
6
+ export const TEMPLATE_SOURCE = 'jst-stack/jst#v0.4.2'
7
7
  export const SHOWCASE_SOURCE = 'jst-stack/jst-showcase#d3625bda10ddb9c39599cc061e3f49cdb6be3922'
8
8
 
9
9
  export function buildProjectSpecification(input) {
@@ -103,7 +103,11 @@ async function configurePackageManager(destination, packageManager, signal) {
103
103
 
104
104
  let version
105
105
  try {
106
- ({ stdout: version } = await executeFile(packageManager, ['--version'], { cwd: destination, signal }))
106
+ ({ stdout: version } = await executeFile(packageManager, ['--version'], {
107
+ cwd: destination,
108
+ shell: process.platform === 'win32',
109
+ signal,
110
+ }))
107
111
  }
108
112
  catch {
109
113
  throw new Error(`Could not run ${packageManager}. Install it or choose another package manager.`)
@@ -117,7 +121,15 @@ async function configurePackageManager(destination, packageManager, signal) {
117
121
  if (packageManager === 'pnpm') {
118
122
  await writeFile(
119
123
  join(destination, 'pnpm-workspace.yaml'),
120
- 'minimumReleaseAge: 10080\nminimumReleaseAgeExcludePrune: true\ntrustPolicy: no-downgrade\ntrustPolicyIgnoreAfter: 10080\nshellEmulator: true\n',
124
+ `minimumReleaseAge: 10080
125
+ minimumReleaseAgeExcludePrune: true
126
+ minimumReleaseAgeExclude:
127
+ - '@jst-stack/eslint-plugin'
128
+
129
+ trustPolicy: no-downgrade
130
+ trustPolicyIgnoreAfter: 10080
131
+ shellEmulator: true
132
+ `,
121
133
  )
122
134
  await replaceReadmeCommands(destination, 'pnpm')
123
135
  }