@temir.ra/create-template 0.1.8 → 0.1.9

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Version 0
2
2
 
3
+ ## 0.1.9
4
+
5
+ 1. Fixed template assets paths.
6
+
3
7
  ## 0.1.8
4
8
 
5
9
  1. Updated template files from `ts-lib@0.8.0` template.
package/buildinfo.txt CHANGED
@@ -1 +1 @@
1
- 0.1.8+3ac8b05
1
+ 0.1.9+edda801
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@temir.ra/create-template",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "A template for a template package.",
5
5
  "author": "temir.ra",
6
6
  "license": "MIT",
@@ -3,10 +3,10 @@
3
3
  import { cpSync, readFileSync, renameSync, writeFileSync } from 'fs';
4
4
  import { resolve } from 'path';
5
5
  import {
6
- templatePath,
7
- changelogPath,
8
- buildinfoPath,
9
- readmePath
6
+ templateUrl,
7
+ changelogUrl,
8
+ buildinfoUrl,
9
+ readmeUrl
10
10
  } from './constants.js';
11
11
 
12
12
 
@@ -19,10 +19,10 @@ try {
19
19
 
20
20
  const destinationPath = resolve(process.cwd(), packageName);
21
21
 
22
- cpSync(templatePath, destinationPath, { recursive: true });
23
- cpSync(changelogPath, resolve(destinationPath, 'CHANGELOG-template.md'));
24
- cpSync(buildinfoPath, resolve(destinationPath, 'buildinfo-template.txt'));
25
- cpSync(readmePath, resolve(destinationPath, 'README-template.md'));
22
+ cpSync(templateUrl, destinationPath, { recursive: true });
23
+ cpSync(changelogUrl, resolve(destinationPath, 'CHANGELOG-template.md'));
24
+ cpSync(buildinfoUrl, resolve(destinationPath, 'buildinfo-template.txt'));
25
+ cpSync(readmeUrl, resolve(destinationPath, 'README-template.md'));
26
26
 
27
27
  const packageJsonPath = resolve(destinationPath, 'package.json');
28
28
  const packageJson = JSON.parse(readFileSync(packageJsonPath, 'utf-8'));