makepack 1.0.3 → 1.0.4
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
|
@@ -6,15 +6,15 @@ export default (args) => {
|
|
|
6
6
|
|
|
7
7
|
if (args.template.includes("react")) {
|
|
8
8
|
dependencies = {
|
|
9
|
-
"react": "^
|
|
10
|
-
"react-dom": "^
|
|
9
|
+
"react": "^19.0.0",
|
|
10
|
+
"react-dom": "^19.0.0"
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
if (args.template.includes("typescript")) {
|
|
15
15
|
devDependencies["typescript"] = "^4.4.2"
|
|
16
|
-
devDependencies["@types/react"] = "^
|
|
17
|
-
devDependencies["@types/react-dom"] = "^
|
|
16
|
+
devDependencies["@types/react"] = "^19.0.2"
|
|
17
|
+
devDependencies["@types/react-dom"] = "^19.0.2"
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
const json = {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export default (args) => {
|
|
2
2
|
const content = `import React from 'react';
|
|
3
|
+
import { createRoot } from 'react-dom/client';
|
|
4
|
+
|
|
3
5
|
const App = () => {
|
|
4
6
|
return (
|
|
5
7
|
<div style={{ textAlign: 'center', marginTop: '50px' }}>
|
|
@@ -16,7 +18,8 @@ const App = () => {
|
|
|
16
18
|
</div>
|
|
17
19
|
);
|
|
18
20
|
};
|
|
19
|
-
|
|
21
|
+
const root = createRoot(document.getElementById('root'));
|
|
22
|
+
root.render(<App />);
|
|
20
23
|
`
|
|
21
24
|
return {
|
|
22
25
|
content,
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export default args => {
|
|
2
2
|
const content = `import React from 'react';
|
|
3
|
+
import { createRoot } from 'react-dom/client';
|
|
4
|
+
|
|
3
5
|
const App: React.FC = () => {
|
|
4
6
|
return (
|
|
5
7
|
<div style={{ textAlign: 'center', marginTop: '50px' }}>
|
|
@@ -16,7 +18,8 @@ const App: React.FC = () => {
|
|
|
16
18
|
</div>
|
|
17
19
|
);
|
|
18
20
|
}
|
|
19
|
-
|
|
21
|
+
const root = createRoot(document.getElementById('root'));
|
|
22
|
+
root.render(<App />);
|
|
20
23
|
`
|
|
21
24
|
return {
|
|
22
25
|
content,
|