@sveltepress/create 0.43.1 → 0.44.0

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 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 : (_documentCurrentScript && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).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
  );
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sveltepress/create",
3
3
  "type": "module",
4
- "version": "0.43.1",
4
+ "version": "0.44.0",
5
5
  "description": "The helper for creating sveltepress projects",
6
6
  "author": {
7
7
  "name": "Dongsheng Zhao",