imdone-core 2.0.4 → 2.0.5

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.
@@ -3,8 +3,8 @@ import _path from 'path'
3
3
  import { exists } from '../adapters/file-gateway.js'
4
4
  import { createRequire } from 'node:module';
5
5
  import { logger } from '../adapters/logger.js';
6
-
7
- const require = createRequire(import.meta.url);
6
+ import { URL } from 'node:url';
7
+ const require = createRequire(new URL(import.meta.url));
8
8
 
9
9
  export default class ExtensionPlugin extends Plugin {
10
10
  constructor(project) {
@@ -16,10 +16,9 @@ import ArchivePlugin from './archive-plugin.js'
16
16
  import EpicPlugin from './epic-plugin.js'
17
17
  import ExtensionPlugin from './extension-plugin.js'
18
18
  import { logger } from '../adapters/logger.js'
19
+ import { URL } from 'node:url'
19
20
 
20
- const require = createRequire(import.meta.url);
21
- const url = new URL(import.meta.url)
22
- const __dirname = _path.dirname(url.pathname)
21
+ const require = createRequire(new URL(import.meta.url));
23
22
 
24
23
  export class PluginManager extends Emitter {
25
24
  constructor(project) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imdone-core",
3
- "version": "2.0.4",
3
+ "version": "2.0.5",
4
4
  "description": "imdone-core",
5
5
  "repository": {
6
6
  "type": "git",