@bleedingdev/modern-js-sandpack-react 3.2.0-ultramodern.120 → 3.2.0-ultramodern.121
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/dist/cjs/templates/mwa.js +12 -33
- package/dist/esm/templates/mwa.mjs +12 -33
- package/dist/esm-node/templates/mwa.mjs +12 -33
- package/dist/types/templates/mwa.d.ts +11 -32
- package/package.json +3 -3
- package/scripts/mwa-template/.browserslistrc +4 -0
- package/scripts/mwa-template/.gitignore.handlebars +30 -0
- package/scripts/mwa-template/.nvmrc +2 -0
- package/scripts/mwa-template/README.md +32 -0
- package/scripts/mwa-template/biome.json.handlebars +37 -0
- package/scripts/mwa-template/package.json.handlebars +27 -0
- package/scripts/template.mts +4 -2
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "{{packageName}}",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"dev": "modern dev",
|
|
6
|
+
"build": "modern build",
|
|
7
|
+
"serve": "modern serve"{{#unless isSubproject}},
|
|
8
|
+
"lint": "biome check"{{/unless}}
|
|
9
|
+
},
|
|
10
|
+
"engines": {
|
|
11
|
+
"node": ">=20"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@modern-js/runtime": "{{version}}",
|
|
15
|
+
"react": "^19.2.3",
|
|
16
|
+
"react-dom": "^19.2.0"
|
|
17
|
+
},
|
|
18
|
+
"devDependencies": {
|
|
19
|
+
"@modern-js/app-tools": "{{version}}",
|
|
20
|
+
"@modern-js/tsconfig": "{{version}}"{{#unless isSubproject}},
|
|
21
|
+
"@biomejs/biome": "1.9.4"{{/unless}},
|
|
22
|
+
"typescript": "~5.7.3",
|
|
23
|
+
"@types/node": "^20",
|
|
24
|
+
"@types/react": "^19.1.8",
|
|
25
|
+
"@types/react-dom": "^19.1.6"
|
|
26
|
+
}
|
|
27
|
+
}
|
package/scripts/template.mts
CHANGED
|
@@ -154,7 +154,10 @@ async function handleCreateTemplate() {
|
|
|
154
154
|
);
|
|
155
155
|
const createPackageJsonPath = path.join(createPackagePath, 'package.json');
|
|
156
156
|
|
|
157
|
-
|
|
157
|
+
// Vendored copy of the upstream single-app MWA template (the old
|
|
158
|
+
// @modern-js/create `template/` directory). The workspace-shell template
|
|
159
|
+
// cannot run inside a browser Sandpack/Nodebox environment.
|
|
160
|
+
const templateDir = path.join(import.meta.dirname, 'mwa-template');
|
|
158
161
|
|
|
159
162
|
const createPackageJson = JSON.parse(
|
|
160
163
|
fs.readFileSync(createPackageJsonPath, 'utf-8'),
|
|
@@ -163,7 +166,6 @@ async function handleCreateTemplate() {
|
|
|
163
166
|
|
|
164
167
|
const files = await handleTemplate(templateDir, {
|
|
165
168
|
packageName: 'modern-app',
|
|
166
|
-
pnpmVersion: '11.5.2',
|
|
167
169
|
version,
|
|
168
170
|
});
|
|
169
171
|
|