fix build + watcher

This commit is contained in:
wass08
2026-02-04 10:22:57 +09:00
parent e776ce9849
commit ac26358a6c
4 changed files with 19 additions and 37 deletions
+3 -2
View File
@@ -1,5 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
transpilePackages: ['three', '@pascal-app/viewer', '@pascal-app/core'],
}
+10 -20
View File
@@ -1,26 +1,8 @@
{
"name": "@pascal-app/core",
"version": "0.1.5",
"version": "0.1.8",
"description": "Core library for Pascal 3D building editor",
"type": "module",
"main": "./src/index.ts",
"types": "./src/index.ts",
"exports": {
".": {
"types": "./src/index.ts",
"import": "./src/index.ts",
"default": "./src/index.ts"
}
},
"files": [
"dist",
"README.md"
],
"scripts": {
"build": "tsc --declaration --emitDeclarationOnly && tsc",
"prepublishOnly": "npm run build"
},
"publishConfig": {
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
@@ -29,7 +11,15 @@
"import": "./dist/index.js",
"default": "./dist/index.js"
}
}
},
"files": [
"dist",
"README.md"
],
"scripts": {
"build": "tsc --declaration --emitDeclarationOnly && tsc",
"dev": "tsc --declaration --emitDeclarationOnly --watch & tsc --watch",
"prepublishOnly": "npm run build"
},
"peerDependencies": {
"@react-three/drei": "^10",
+10 -20
View File
@@ -1,26 +1,8 @@
{
"name": "@pascal-app/viewer",
"version": "0.1.5",
"version": "0.1.8",
"description": "3D viewer component for Pascal building editor",
"type": "module",
"main": "./src/index.ts",
"types": "./src/index.ts",
"exports": {
".": {
"types": "./src/index.ts",
"import": "./src/index.ts",
"default": "./src/index.ts"
}
},
"files": [
"dist",
"README.md"
],
"scripts": {
"build": "tsc --declaration --emitDeclarationOnly && tsc",
"prepublishOnly": "npm run build"
},
"publishConfig": {
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
@@ -29,7 +11,15 @@
"import": "./dist/index.js",
"default": "./dist/index.js"
}
}
},
"files": [
"dist",
"README.md"
],
"scripts": {
"build": "tsc --declaration --emitDeclarationOnly && tsc",
"dev": "tsc --declaration --emitDeclarationOnly --watch & tsc --watch",
"prepublishOnly": "npm run build"
},
"peerDependencies": {
"@pascal-app/core": "^0.1.4",
+2 -1
View File
@@ -5,7 +5,7 @@
"build": {
"dependsOn": ["^build"],
"inputs": ["$TURBO_DEFAULT$", ".env*"],
"outputs": [".next/**", "!.next/cache/**"]
"outputs": [".next/**", "!.next/cache/**", "dist/**"]
},
"lint": {
"dependsOn": ["^lint"]
@@ -14,6 +14,7 @@
"dependsOn": ["^check-types"]
},
"dev": {
"dependsOn": ["^build"],
"cache": false,
"persistent": true
}