Comments (2)
I managed to rename this via the nx:run-commands
executor.
I made the build
command be dependent on rollup
, the build
only renames the file after rollup
finishes.
"rollup": {
"executor": "@nx/rollup:rollup",
"outputs": [
"{options.outputPath}"
],
"options": {
"outputPath": "server-files/client_packages",
"main": "apps/rage-client/src/index.ts",
"tsConfig": "apps/rage-client/tsconfig.app.json",
"assets": [],
"compiler": "tsc",
"format": [
"cjs"
]
}
},
"build": {
"dependsOn": [
"rollup"
],
"executor": "nx:run-commands",
"options": {
"commands": [
"node -e \"require('fs').rename('server-files/client_packages/index.cjs.js', 'server-files/client_packages/index.js', function(err) { if (err) console.log(err); console.log('File successfully renamed!') })\"",
"node -e \"require('fs').rename('server-files/client_packages/index.cjs.d.ts', 'server-files/client_packages/index.d.ts', function(err) { if (err) console.log(err); console.log('File successfully renamed!') })\""
]
}
}
from nx.
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
from nx.
Related Issues (20)
- Daemon crashes when executing nx command in postinstall hook (bun) HOT 1
- All nx commands are failing HOT 4
- 19.2.0 update broke many generators (including @nx/next) HOT 5
- Re-open: Default tsconfig sourceMap setting produces invalid sourceMap for publishable packages HOT 2
- Re-open: Default tsconfig sourceMap setting produces invalid sourceMap for publishable packages
- Module Federation host build failing due to remote error HOT 4
- Failed to run explicitly-set-projects-to-update-buildable-deps from @nx/js. This workspace is NOT up to date! HOT 3
- Using the library generated by @monodon/rust napi in the same project HOT 3
- nx 19.2.2 cannot build repo setup for incremental builds HOT 5
- Nx not able to migrate older Angular repository (9.XX -> 10.XX) HOT 2
- Serving apps cause npm:react-is error and restart HOT 5
- Js release-version: topological ordering iterates all edges per node instead of only its own HOT 1
- `nx release`: fails when executed outside the workspace root directory HOT 3
- TS doesn't generate *.d.ts files HOT 2
- nx graph --affected --file=graph.json not working correctly HOT 5
- Nx reset required whenever changing project configuration files HOT 4
- NPE on task runner HOT 1
- NextJS Turbopack fails to compile HOT 6
- `npm install` in a project with 2 `nx` packages randomly fails with `npm ERR! code 135` HOT 11
- Should `workspace-data` be .gitignored? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nx.