react-three-game 0.0.1

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.
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ interface GameCanvasProps {
3
+ text: string;
4
+ }
5
+ declare const GameCanvas: React.FC<GameCanvasProps>;
6
+ export default GameCanvas;
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ const GameCanvas = ({ text }) => {
3
+ return _jsx("div", { children: text });
4
+ };
5
+ export default GameCanvas;
@@ -0,0 +1 @@
1
+ export { default as GameCanvas } from './GameCanvas';
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export { default as GameCanvas } from './GameCanvas';
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "react-three-game",
3
+ "version": "0.0.1",
4
+ "description": "Batteries included React Three Fiber game engine",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "scripts": {
9
+ "watch": "tsc --watch",
10
+ "dev": "concurrently \"npm run watch\" \"cd docs && npm run start\"",
11
+ "build": "tsc",
12
+ "publish": "npm run build && npm publish --access public"
13
+ },
14
+ "keywords": [],
15
+ "author": "",
16
+ "license": "ISC",
17
+ "type": "commonjs",
18
+ "devDependencies": {
19
+ "@types/react": "^19.2.6",
20
+ "@types/react-dom": "^19.2.3",
21
+ "react": "^19.2.0",
22
+ "react-dom": "^19.2.0",
23
+ "typescript": "^5.9.3"
24
+ }
25
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES6",
4
+ "module": "ESNext",
5
+ "jsx": "react-jsx",
6
+ "declaration": true,
7
+ "declarationDir": "dist",
8
+ "outDir": "dist",
9
+ "strict": true,
10
+ "esModuleInterop": true,
11
+ "skipLibCheck": true,
12
+ "moduleResolution": "node",
13
+ "allowSyntheticDefaultImports": true
14
+ },
15
+ "include": ["src"],
16
+ "exclude": ["node_modules", "dist"]
17
+ }