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.join(import.meta.dirname, 'templates', 'init');
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esm.dev",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "description": "TypeScript library template",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -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.join(import.meta.dirname, 'templates', 'init')
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)