create-pracht 0.0.0 → 0.0.2
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 +1 -1
- package/src/index.js +6 -6
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -264,7 +264,7 @@ function createPackageJson({ adapter, projectName }) {
|
|
|
264
264
|
{
|
|
265
265
|
dependencies: {
|
|
266
266
|
[adapter.packageName]: "latest",
|
|
267
|
-
pracht: "latest",
|
|
267
|
+
"@pracht/core": "latest",
|
|
268
268
|
},
|
|
269
269
|
devDependencies,
|
|
270
270
|
name: projectName,
|
|
@@ -301,7 +301,7 @@ function createViteConfig(adapter) {
|
|
|
301
301
|
|
|
302
302
|
function createRoutesFile() {
|
|
303
303
|
return [
|
|
304
|
-
'import { defineApp, route } from "pracht";',
|
|
304
|
+
'import { defineApp, route } from "@pracht/core";',
|
|
305
305
|
"",
|
|
306
306
|
"export const app = defineApp({",
|
|
307
307
|
" shells: {",
|
|
@@ -317,7 +317,7 @@ function createRoutesFile() {
|
|
|
317
317
|
|
|
318
318
|
function createShellFile(projectName) {
|
|
319
319
|
return [
|
|
320
|
-
'import type { ShellProps } from "pracht";',
|
|
320
|
+
'import type { ShellProps } from "@pracht/core";',
|
|
321
321
|
"",
|
|
322
322
|
"export function Shell({ children }: ShellProps) {",
|
|
323
323
|
" return (",
|
|
@@ -343,7 +343,7 @@ function createShellFile(projectName) {
|
|
|
343
343
|
|
|
344
344
|
function createHomeRoute(adapter) {
|
|
345
345
|
return [
|
|
346
|
-
'import type { LoaderArgs, RouteComponentProps } from "pracht";',
|
|
346
|
+
'import type { LoaderArgs, RouteComponentProps } from "@pracht/core";',
|
|
347
347
|
"",
|
|
348
348
|
"export async function loader(_args: LoaderArgs) {",
|
|
349
349
|
" return {",
|
|
@@ -413,8 +413,8 @@ function createWranglerConfig(projectName) {
|
|
|
413
413
|
|
|
414
414
|
function createCloudflareEnvDeclaration() {
|
|
415
415
|
return [
|
|
416
|
-
'import "pracht";',
|
|
417
|
-
'declare module "pracht" {',
|
|
416
|
+
'import "@pracht/core";',
|
|
417
|
+
'declare module "@pracht/core" {',
|
|
418
418
|
" interface Register {",
|
|
419
419
|
" context: {",
|
|
420
420
|
" env: Env;",
|