@appweaver/create-weaver-app 1.1.5 → 1.1.6
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
CHANGED
package/skill/SKILL.md
CHANGED
|
@@ -103,6 +103,12 @@ bun weaver migration new init
|
|
|
103
103
|
bun run seed
|
|
104
104
|
```
|
|
105
105
|
|
|
106
|
+
**Install scripts:** npm 12+ blocks dependency install scripts by default. The scaffolded `package.json` ships an
|
|
107
|
+
`allowScripts` field (Bun: `trustedDependencies`) covering the packages Appweaver needs to build. Without it,
|
|
108
|
+
`npm install` skips the native builds and `weaver generate` fails. To approve a newly added dependency, run
|
|
109
|
+
`npm install-scripts approve <pkg>`; it writes the entry to the root `package.json`. Note that a `package.json`
|
|
110
|
+
`allowScripts` field makes npm ignore `.npmrc` `allow-scripts` entirely.
|
|
111
|
+
|
|
106
112
|
### Creating and starting the application server
|
|
107
113
|
|
|
108
114
|
The main entrypoint to the application. This function creates an application object and initializes all resources and
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
## 1. Install dependencies and build the application
|
|
2
|
-
FROM node:24.
|
|
2
|
+
FROM node:24.18.1-alpine AS build
|
|
3
3
|
|
|
4
4
|
# Install tools for building libraries on other platforms
|
|
5
5
|
RUN apk add build-base python3 py3-pip make gcc
|
|
@@ -18,7 +18,7 @@ RUN npm run build
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
## 2. Setup server environment, copy build output and start the application script
|
|
21
|
-
FROM node:24.
|
|
21
|
+
FROM node:24.18.1-alpine AS deploy
|
|
22
22
|
|
|
23
23
|
# Install tools for building libraries on other platforms
|
|
24
24
|
RUN apk add build-base python3 py3-pip make gcc
|
|
@@ -40,5 +40,14 @@
|
|
|
40
40
|
"prettier": "3.8.4",
|
|
41
41
|
"typescript": "5.9.3",
|
|
42
42
|
"typescript-eslint": "8.61.1"
|
|
43
|
+
},
|
|
44
|
+
"allowScripts": {
|
|
45
|
+
"@prisma/engines": true,
|
|
46
|
+
"@swc/core": true,
|
|
47
|
+
"bcrypt": true,
|
|
48
|
+
"better-sqlite3": true,
|
|
49
|
+
"msgpackr-extract": true,
|
|
50
|
+
"prisma": true,
|
|
51
|
+
"unrs-resolver": true
|
|
43
52
|
}
|
|
44
53
|
}
|