@dword-design/base-config-app 5.0.1 → 5.0.3

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.
@@ -2,7 +2,7 @@ import fs from 'fs-extra';
2
2
  import hostedGitInfo from 'hosted-git-info';
3
3
  import parseGitConfig from 'parse-git-config';
4
4
  import parsePackagejsonName from 'parse-packagejson-name';
5
- export default (packageConfig => {
5
+ export default packageConfig => {
6
6
  const repositoryUrl = fs.existsSync('.git') ? parseGitConfig.sync()['remote "origin"']?.url : undefined;
7
7
  const gitInfo = hostedGitInfo.fromUrl(repositoryUrl) || {};
8
8
  if (repositoryUrl !== undefined && gitInfo.type !== 'github') {
@@ -30,4 +30,4 @@ export default (packageConfig => {
30
30
  }
31
31
  }
32
32
  };
33
- });
33
+ };
@@ -1,6 +1,6 @@
1
1
  import { endent } from '@dword-design/functions';
2
2
  import parsePackagejsonName from 'parse-packagejson-name';
3
- export default (packageConfig => {
3
+ export default packageConfig => {
4
4
  const packageName = parsePackagejsonName(packageConfig.name).fullName;
5
5
  return endent`
6
6
  upstream web {
@@ -19,4 +19,4 @@ export default (packageConfig => {
19
19
  }
20
20
 
21
21
  `;
22
- });
22
+ };
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import yaml from 'yaml';
7
7
  import dockerCompose from "./docker-compose.js";
8
8
  import getEcosystemConfig from "./get-ecosystem-config.js";
9
9
  import getNginxConfig from "./get-nginx-config.js";
10
- export default (config => {
10
+ export default config => {
11
11
  const baseConfigNuxt = getBaseConfigNuxt(config);
12
12
  const packageConfig = loadPkg.sync();
13
13
  return {
@@ -25,7 +25,7 @@ export default (config => {
25
25
  return outputFiles({
26
26
  'docker-compose.yml': yaml.stringify(dockerCompose),
27
27
  'ecosystem.json': JSON.stringify(getEcosystemConfig(packageConfig), undefined, 2),
28
- 'nginx/default.config': JSON.stringify(getNginxConfig(packageConfig), undefined, 2)
28
+ 'nginx/default.config': getNginxConfig(packageConfig)
29
29
  });
30
30
  },
31
31
  useJobMatrix: false,
@@ -63,4 +63,4 @@ export default (config => {
63
63
  }
64
64
  }
65
65
  };
66
- });
66
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dword-design/base-config-app",
3
- "version": "5.0.1",
3
+ "version": "5.0.3",
4
4
  "repository": "dword-design/base-config-app",
5
5
  "funding": "https://github.com/sponsors/dword-design",
6
6
  "license": "MIT",