fix(cli): adjusted build and main field for backend
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "example-backend",
|
||||
"version": "0.1.1-alpha.7",
|
||||
"main": "dist/index.cjs",
|
||||
"main": "dist",
|
||||
"types": "src/index.ts",
|
||||
"private": true,
|
||||
"license": "Apache-2.0",
|
||||
@@ -9,8 +9,8 @@
|
||||
"node": ">=12"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "backstage-cli build --outputs cjs",
|
||||
"start": "backstage-cli watch-deps --build -- backstage-cli backend:dev",
|
||||
"build": "tsc",
|
||||
"start": "backstage-cli backend:dev",
|
||||
"lint": "backstage-cli lint",
|
||||
"test": "backstage-cli test",
|
||||
"clean": "backstage-cli clean",
|
||||
|
||||
@@ -80,10 +80,14 @@ export function createConfig(
|
||||
);
|
||||
|
||||
const backendRelatedConfig = {
|
||||
watch: true,
|
||||
watchOptions: {
|
||||
ignored: [/node_modules\/(?!\@backstage)/],
|
||||
},
|
||||
...(isDev
|
||||
? {
|
||||
watch: true,
|
||||
watchOptions: {
|
||||
ignored: [/node_modules\/(?!\@backstage)/],
|
||||
},
|
||||
}
|
||||
: {}),
|
||||
externals: [
|
||||
nodeExternals({
|
||||
modulesDir: paths.rootNodeModules,
|
||||
|
||||
Reference in New Issue
Block a user