Skip to content

Commit 73e5d33

Browse files
committed
refactor(node-red): улучшить структуру и процесс сборки пакета
1 parent 22c0bf5 commit 73e5d33

File tree

8 files changed

+2
-2
lines changed

8 files changed

+2
-2
lines changed

packages/node-red/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import path from 'path';
44
import { rm, mkdir, readdir, stat } from 'fs/promises';
55

66
const SRC_DIR = path.resolve(import.meta.dir, 'src');
7-
const LOCALES_DIR = path.resolve(import.meta.dir, 'locales');
7+
const LOCALES_DIR = path.resolve(import.meta.dir, 'src/locales');
88
const DOCS_DIR = path.resolve(import.meta.dir, 'docs');
99
const DIST_DIR = path.resolve(import.meta.dir, 'dist');
1010

packages/node-red/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"build": "bun ./build.js",
1010
"start": "node-red --settings settings.cjs",
1111
"dev": "nodemon --exec 'bun run build && bun run start' --watch src --watch locales --watch docs -e js,json,html,md",
12-
"prepublishOnly": "npm run build"
12+
"prepack": "bun run build"
1313
},
1414
"files": [
1515
"./dist/",
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)