From b6a30d317287e21161c227395106bae222070181 Mon Sep 17 00:00:00 2001 From: Jim Eckerlein Date: Mon, 14 Aug 2023 15:32:53 +0200 Subject: [PATCH] Print warning when running npm run dev/build from root --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index cb4e2d21..c06ae150 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ "url": "git+https://github.com/KhronosGroup/glTF-Sample-Viewer.git" }, "scripts": { - "build": "rollup -c", - "dev": "rollup -c -w", + "build": "echo 'Please run `npm run build` from the `app_web` or `app_headless` directory.'", + "dev": "echo 'Please run `npm run dev` from the `app_web` or `app_headless` directory.'", "prepublishOnly": "npm run build && npm run build_docs", "build_docs": "rm API.md; ./node_modules/.bin/jsdoc2md source/gltf-sample-viewer.js source/GltfView/gltf_view.js source/GltfState/gltf_state.js source/ResourceLoader/resource_loader.js source/gltf/user_camera.js > API.md", "test": "echo \"Error: no test specified\" && exit 1", @@ -46,4 +46,4 @@ "url": "https://github.com/KhronosGroup/glTF-Sample-Viewer/issues" }, "homepage": "https://github.com/KhronosGroup/glTF-Sample-Viewer/#readme" -} +} \ No newline at end of file