create-minimal-package 1.4.1 → 1.5.0

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/README.md CHANGED
@@ -61,7 +61,8 @@ Zero-knowledge ***minimalistic*** template for creating a new npm package.
61
61
  4. [Create][codecov-url] and add `CODECOV_TOKEN` to [`Settings/Secrets and variables/Actions/Repository secrets`](https://github.com/34j/create-minimal-package/settings/secrets/actions).
62
62
  5. Install GitHub Apps, [pre-commit.ci **lite**](https://github.com/apps/pre-commit-ci-lite/installations/select_target) and [Codecov](https://github.com/apps/codecov/installations/select_target).
63
63
  6. Install [pre-commit](https://pre-commit.com/) using [`uv`](https://github.com/astral-sh/uv) by `uv tool install pre-commit` and install hooks by `pre-commit install`.
64
- 7. Remove everything above `---`.
64
+ 7. Enable Github Pages and set `Source` to `GitHub Actions` from [`Settings/Pages/Build and deployment`](https://github.com/34j/create-minimal-package/settings/pages)
65
+ 8. Remove everything above `---`.
65
66
 
66
67
  > Inspired by [node-module-boilerplate](https://github.com/sindresorhus/node-module-boilerplate) and [typescript-npm-package-template](https://github.com/Atry/typescript-npm-package-template/tree/main), which is great but unnecessarily complex and poorly maintained.
67
68
 
package/dist/src/index.js CHANGED
@@ -3,7 +3,9 @@
3
3
  @module
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.myPackage = void 0;
6
+ exports.mySubmodule = exports.myPackage = void 0;
7
+ const submodule_1 = require("./submodule");
8
+ Object.defineProperty(exports, "mySubmodule", { enumerable: true, get: function () { return submodule_1.mySubmodule; } });
7
9
  /**
8
10
  * Lorem ipsum.
9
11
  */
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mySubmodule = void 0;
4
+ /**
5
+ * Lorem ipsum.
6
+ */
7
+ const mySubmodule = (taco = '') => `${taco} from my submodule`;
8
+ exports.mySubmodule = mySubmodule;
@@ -10,4 +10,11 @@ const src_1 = require("../src");
10
10
  (0, vitest_1.expect)(result).toMatch(message);
11
11
  });
12
12
  });
13
+ (0, vitest_1.describe)('mySubmodule', () => {
14
+ (0, vitest_1.it)('should return a string containing the message', () => {
15
+ const message = 'Hello';
16
+ const result = (0, src_1.mySubmodule)(message);
17
+ (0, vitest_1.expect)(result).toMatch(message);
18
+ });
19
+ });
13
20
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "create-minimal-package",
3
3
  "type": "commonjs",
4
- "version": "1.4.1",
4
+ "version": "1.5.0",
5
5
  "description": "Minimalistic npm package template with 📦🚀semantic-release + Commitizen, CodeCov, Renovate, pre-commit + EsLint (✗🐶Husky + Lint Staged), ⚡️Vitest (✗👢Jest), 📖TypeDoc + Github Pages support. Note that this is a generated sample package.",
6
6
  "author": {
7
7
  "name": "34j"
@@ -41,19 +41,19 @@
41
41
  "update": "npm-check-updates -u"
42
42
  },
43
43
  "devDependencies": {
44
- "@antfu/eslint-config": "4.11.0",
44
+ "@antfu/eslint-config": "4.12.0",
45
45
  "@semantic-release/changelog": "6.0.3",
46
46
  "@semantic-release/git": "10.0.1",
47
47
  "@tsconfig/strictest": "2.0.5",
48
- "@types/node": "22.14.0",
49
- "@typescript-eslint/eslint-plugin": "8.29.0",
48
+ "@types/node": "22.14.1",
49
+ "@typescript-eslint/eslint-plugin": "8.29.1",
50
50
  "@vitest/browser": "3.1.1",
51
51
  "@vitest/coverage-v8": "3.1.1",
52
52
  "eslint": "9.24.0",
53
53
  "npm-run-all2": "7.0.2",
54
54
  "playwright": "1.51.1",
55
55
  "semantic-release": "24.2.3",
56
- "typedoc": "0.28.1",
56
+ "typedoc": "0.28.2",
57
57
  "typescript": "5.8.3",
58
58
  "vitest": "3.1.1"
59
59
  },