@dword-design/base-config-app 5.0.0 → 5.0.2

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/LICENSE.md CHANGED
@@ -6,7 +6,7 @@ Copyright &copy; Sebastian Landwehr <info@sebastianlandwehr.com>
6
6
 
7
7
  and licensed under:
8
8
 
9
- [MIT License](https://opensource.org/licenses/MIT)
9
+ [MIT License](https://opensource.org/license/mit/)
10
10
 
11
11
  ## MIT License
12
12
 
package/README.md CHANGED
@@ -102,5 +102,5 @@ Thanks a lot for your support! ❤️
102
102
 
103
103
  ## License
104
104
 
105
- [MIT License](https://opensource.org/licenses/MIT) © [Sebastian Landwehr](https://sebastianlandwehr.com)
105
+ [MIT License](https://opensource.org/license/mit/) © [Sebastian Landwehr](https://sebastianlandwehr.com)
106
106
  <!-- /LICENSE -->
@@ -2,9 +2,8 @@ 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 => {
6
- var _parseGitConfig$sync$;
7
- const repositoryUrl = fs.existsSync('.git') ? (_parseGitConfig$sync$ = parseGitConfig.sync()['remote "origin"']) === null || _parseGitConfig$sync$ === void 0 ? void 0 : _parseGitConfig$sync$.url : undefined;
5
+ export default packageConfig => {
6
+ const repositoryUrl = fs.existsSync('.git') ? parseGitConfig.sync()['remote "origin"']?.url : undefined;
8
7
  const gitInfo = hostedGitInfo.fromUrl(repositoryUrl) || {};
9
8
  if (repositoryUrl !== undefined && gitInfo.type !== 'github') {
10
9
  throw new Error('Only GitHub repositories are supported.');
@@ -26,9 +25,9 @@ export default (packageConfig => {
26
25
  ...(repositoryUrl && {
27
26
  repo: `git@github.com:${gitInfo.user}/${gitInfo.project}.git`
28
27
  }),
29
- 'post-deploy': 'source ~/.nvm/nvm.sh && yarn --frozen-lockfile && yarn checkUnknownFiles && yarn prepublishOnly && pm2 startOrReload ecosystem.json',
28
+ 'post-deploy': 'source ~/.nvm/nvm.sh && pnpm install --frozen-lockfile && pnpm checkUnknownFiles && pnpm prepublishOnly && pm2 startOrReload ecosystem.json',
30
29
  ref: 'origin/master'
31
30
  }
32
31
  }
33
32
  };
34
- });
33
+ };
@@ -1,6 +1,6 @@
1
- import endent from "@dword-design/functions/dist/endent.js";
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 {
@@ -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.0",
3
+ "version": "5.0.2",
4
4
  "repository": "dword-design/base-config-app",
5
5
  "funding": "https://github.com/sponsors/dword-design",
6
6
  "license": "MIT",
@@ -23,11 +23,11 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@dword-design/base-config-nuxt": "^6.0.0",
26
- "@dword-design/functions": "^5.0.20",
26
+ "@dword-design/functions": "^6.0.1",
27
27
  "@semantic-release/exec": "^6.0.3",
28
28
  "ceiling": "^4.0.0",
29
29
  "depcheck-package-name": "^3.0.1",
30
- "execa": "^8.0.1",
30
+ "execa": "^9.3.1",
31
31
  "fs-extra": "^11.1.1",
32
32
  "hosted-git-info": "^7.0.1",
33
33
  "load-pkg": "^4.0.0",
@@ -46,6 +46,7 @@
46
46
  "nuxt-dev-ready": "^3.0.0",
47
47
  "tree-kill-promise": "^3.0.14"
48
48
  },
49
+ "packageManager": "pnpm@9.7.1+sha512.faf344af2d6ca65c4c5c8c2224ea77a81a5e8859cbc4e06b1511ddce2f0151512431dd19e6aff31f2c6a8f5f2aced9bd2273e1fed7dd4de1868984059d2c4247",
49
50
  "engines": {
50
51
  "node": ">=18"
51
52
  },