@sveltepress/create 0.43.0 → 0.43.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/dist/index.cjs +1 -2
- package/package.json +1 -1
- package/template-js/package-lock.json +10183 -0
- package/template-js/package.json +7 -7
- package/template-ts/package-lock.json +10184 -0
- package/template-ts/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -9,7 +9,6 @@ const minimist = require('minimist');
|
|
|
9
9
|
const prompts = require('prompts');
|
|
10
10
|
const pc = require('picocolors');
|
|
11
11
|
|
|
12
|
-
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
13
12
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
|
|
14
13
|
|
|
15
14
|
const fs__default = /*#__PURE__*/_interopDefaultCompat(fs);
|
|
@@ -137,7 +136,7 @@ async function init() {
|
|
|
137
136
|
console.log(`
|
|
138
137
|
Scaffolding project in ${root}...`);
|
|
139
138
|
const templateDir = path__default.resolve(
|
|
140
|
-
node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (
|
|
139
|
+
node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (document.currentScript && document.currentScript.src || new URL('index.cjs', document.baseURI).href))),
|
|
141
140
|
"../..",
|
|
142
141
|
`template-${template}`
|
|
143
142
|
);
|