esm.dev 1.5.2 → 1.5.3
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.
|
@@ -27,7 +27,7 @@ export class InitCommand extends PackagePathSpecific(MustacheGeneratorCommand) {
|
|
|
27
27
|
npmRegistryURL;
|
|
28
28
|
packages;
|
|
29
29
|
async execute() {
|
|
30
|
-
this.templateDir = path.
|
|
30
|
+
this.templateDir = path.resolve(import.meta.dirname, '..', '..', 'templates', 'init');
|
|
31
31
|
this.destinationDir = this.outputDirectory;
|
|
32
32
|
this.esmURL = new URL(this.esmOrigin);
|
|
33
33
|
this.npmRegistryURL = new URL(this.registry);
|
package/package.json
CHANGED
|
@@ -44,7 +44,13 @@ export class InitCommand extends PackagePathSpecific(MustacheGeneratorCommand) {
|
|
|
44
44
|
packages!: { path: string; basename: string }[]
|
|
45
45
|
|
|
46
46
|
override async execute() {
|
|
47
|
-
this.templateDir = path.
|
|
47
|
+
this.templateDir = path.resolve(
|
|
48
|
+
import.meta.dirname,
|
|
49
|
+
'..',
|
|
50
|
+
'..',
|
|
51
|
+
'templates',
|
|
52
|
+
'init',
|
|
53
|
+
)
|
|
48
54
|
this.destinationDir = this.outputDirectory
|
|
49
55
|
this.esmURL = new URL(this.esmOrigin)
|
|
50
56
|
this.npmRegistryURL = new URL(this.registry)
|
|
File without changes
|