@dargmuesli/nuxt-vio 20.6.6 → 20.6.7

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.
@@ -1,10 +1,7 @@
1
1
  import fs from 'node:fs'
2
2
  import path from 'node:path'
3
- import { fileURLToPath } from 'node:url'
4
3
 
5
- const __filename = fileURLToPath(import.meta.url)
6
- const __dirname = path.dirname(__filename)
7
- const root = path.resolve(__dirname, '../..')
4
+ const root = process.argv[2] || process.cwd()
8
5
 
9
6
  const certSuffix = process.env.CI ? '-ci' : '-dev'
10
7
  const certPath = path.join(root, `.config/certificates/ssl${certSuffix}.crt`)
@@ -1,10 +1,7 @@
1
1
  import { spawn } from 'node:child_process'
2
2
  import path from 'node:path'
3
- import { fileURLToPath } from 'node:url'
4
3
 
5
- const __filename = fileURLToPath(import.meta.url)
6
- const __dirname = path.dirname(__filename)
7
- const root = path.resolve(__dirname, '../..')
4
+ const root = process.argv[2] || process.cwd()
8
5
 
9
6
  const certSuffix = process.env.CI ? '-ci' : '-dev'
10
7
  const certPath = path.join(root, `.config/certificates/ssl${certSuffix}.crt`)
package/package.json CHANGED
@@ -77,7 +77,6 @@
77
77
  "app",
78
78
  "i18n",
79
79
  "node",
80
- "scripts",
81
80
  "server",
82
81
  "shared",
83
82
  "nuxt.config.ts",
@@ -114,9 +113,9 @@
114
113
  "preview": "nuxt preview playground",
115
114
  "start": "pnpm run start:node",
116
115
  "start:dev": "pnpm run certificates && NODE_EXTRA_CA_CERTS=\"$(mkcert -CAROOT)/rootCA.pem\" nuxt dev playground",
117
- "start:node": "node scripts/server/node.mjs",
118
- "start:static": "node scripts/server/static.mjs"
116
+ "start:node": "node node/server/node.mjs",
117
+ "start:static": "node node/server/static.mjs"
119
118
  },
120
119
  "type": "module",
121
- "version": "20.6.6"
120
+ "version": "20.6.7"
122
121
  }