@vidavidorra/create-project 2.0.15-beta.1 → 2.0.15

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.
@@ -2,7 +2,6 @@ import { type Options } from '../options.js';
2
2
  type FileOptions = {
3
3
  mode: number;
4
4
  format: boolean;
5
- read: boolean;
6
5
  };
7
6
  declare class File {
8
7
  readonly path: string;
@@ -10,10 +10,8 @@ class File {
10
10
  constructor(path, options) {
11
11
  this.path = path;
12
12
  this._directory = dirname(path);
13
- this._options = { mode: 0o644, format: false, read: true, ...options };
14
- this._content = this._options.read
15
- ? fs.readFileSync(join(rootPath, path), 'utf8')
16
- : '';
13
+ this._options = { mode: 0o644, format: false, ...options };
14
+ this._content = fs.readFileSync(join(rootPath, path), 'utf8');
17
15
  }
18
16
  get options() {
19
17
  return structuredClone(this._options);
@@ -1,7 +1,6 @@
1
1
  import { CiCd } from './ci-cd.js';
2
2
  import { File } from './file.js';
3
3
  import { LintStaged } from './lint-staged.js';
4
- import { Npmrc } from './npmrc.js';
5
4
  import { Package } from './package.js';
6
5
  import { Readme } from './readme/index.js';
7
6
  import { TsConfig } from './ts-config.js';
@@ -14,7 +13,7 @@ function files(options) {
14
13
  new File('.github/renovate.json', options),
15
14
  new File('.editorconfig', options),
16
15
  new File('.gitignore', options),
17
- new Npmrc('.npmrc', options),
16
+ new File('.npmrc', options),
18
17
  new File('LICENSE.md', options),
19
18
  new Package('package.json', options),
20
19
  new Readme('README.md', options),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vidavidorra/create-project",
3
- "version": "2.0.15-beta.1",
3
+ "version": "2.0.15",
4
4
  "private": false,
5
5
  "description": "Interactively create a GitHub project",
6
6
  "keywords": [
@@ -20,7 +20,6 @@
20
20
  "type": "module",
21
21
  "exports": "./dist/index.js",
22
22
  "bin": {
23
- "@vidavidorra/create-project": "./dist/cli.js",
24
23
  "create-project": "./dist/cli.js"
25
24
  },
26
25
  "files": [
@@ -28,6 +27,7 @@
28
27
  "./.editorconfig",
29
28
  "./.github/",
30
29
  "./.gitignore",
30
+ "./.npmrc",
31
31
  "./src/scripts/postinstall.js",
32
32
  "./LICENSE.md",
33
33
  "./tsconfig.json"
@@ -214,14 +214,14 @@
214
214
  "@semantic-release/changelog": "6.0.3",
215
215
  "@semantic-release/exec": "6.0.3",
216
216
  "@semantic-release/git": "10.0.1",
217
- "@types/node": "20.11.15",
217
+ "@types/node": "20.11.16",
218
218
  "@types/prettier": "2.7.3",
219
219
  "@types/sinon": "17.0.3",
220
220
  "@types/validate-npm-package-name": "4.0.2",
221
221
  "@vidavidorra/commitlint-config": "6.0.3",
222
222
  "ava": "6.1.1",
223
223
  "c8": "9.1.0",
224
- "husky": "9.0.7",
224
+ "husky": "9.0.10",
225
225
  "lint-staged": "15.2.1",
226
226
  "semantic-release": "23.0.0",
227
227
  "sinon": "17.0.1",
@@ -1,7 +0,0 @@
1
- import { type Options } from '../options.js';
2
- import { File } from './file.js';
3
- declare class Npmrc extends File {
4
- constructor(path: string, options: Options);
5
- process(): this;
6
- }
7
- export { Npmrc };
@@ -1,12 +0,0 @@
1
- import { File } from './file.js';
2
- class Npmrc extends File {
3
- constructor(path, options) {
4
- super(path, { ...options, format: true, read: false });
5
- }
6
- process() {
7
- this._content = 'save-exact=true\n\n';
8
- return this;
9
- }
10
- }
11
- export { Npmrc };
12
- //# sourceMappingURL=npmrc.js.map