Skip to content

Commit eb6bb7a

Browse files
committed
Add missing dependencies for AdminJS
- Fix Dockerfile with `CI=true` to prevent `ERR_PNPM_ABORTED_REMOVE_MODULES_DIR_NO_TTY`
1 parent 0daf6b5 commit eb6bb7a

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.npmrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# adminjs creates a virtual Babel entry file at the project root to resolve its
2+
# .babelrc.json at runtime. pnpm strict hoisting prevents Babel from finding
3+
# adminjs's own babel plugins from that path, so we hoist them to root node_modules.
4+
public-hoist-pattern[]=@babel/plugin-syntax-import-assertions
5+
public-hoist-pattern[]=@babel/plugin-syntax-import-attributes

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ ENV NODE_ENV=production
1818
RUN pnpm run build
1919

2020
# Clean and reinstall only production dependencies
21+
ENV CI=true
2122
RUN pnpm prune --prod --ignore-scripts
2223

2324
#

0 commit comments

Comments
 (0)