@fransek/package-template 1.0.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 ADDED
@@ -0,0 +1,11 @@
1
+ # Package template
2
+
3
+ - pnpm
4
+ - TypeScript
5
+ - Vitest
6
+ - Rollup
7
+ - ESLint
8
+ - Prettier
9
+ - Husky
10
+ - Lint-staged
11
+ - semantic-release
@@ -0,0 +1 @@
1
+ export declare const greet: (name: string) => void;
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ const greet = (name) => {
4
+ console.log(`Hello, ${name}!`);
5
+ };
6
+
7
+ exports.greet = greet;
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["export const greet = (name: string) => {\n console.log(`Hello, ${name}!`);\n};\n"],"names":[],"mappings":";;AAAO,MAAM,KAAK,GAAG,CAAC,IAAY,KAAI;AACpC,IAAA,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,CAAA,CAAA,CAAG,CAAC;AAChC;;;;"}
@@ -0,0 +1 @@
1
+ export declare const greet: (name: string) => void;
@@ -0,0 +1,6 @@
1
+ const greet = (name) => {
2
+ console.log(`Hello, ${name}!`);
3
+ };
4
+
5
+ export { greet };
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["export const greet = (name: string) => {\n console.log(`Hello, ${name}!`);\n};\n"],"names":[],"mappings":"AAAO,MAAM,KAAK,GAAG,CAAC,IAAY,KAAI;AACpC,IAAA,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,CAAA,CAAA,CAAG,CAAC;AAChC;;;;"}
package/package.json ADDED
@@ -0,0 +1,64 @@
1
+ {
2
+ "name": "@fransek/package-template",
3
+ "version": "1.0.0",
4
+ "author": "Frans Ekman <fransedvinekman@gmail.com>",
5
+ "license": "MIT",
6
+ "description": "Package template for TypeScript packages",
7
+ "keywords": [],
8
+ "homepage": "https://github.com/fransek/package-template#readme",
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/fransek/package-template"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/fransek/package-template/issues"
15
+ },
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "main": "dist/cjs/index.js",
20
+ "module": "dist/esm/index.js",
21
+ "exports": {
22
+ ".": {
23
+ "import": "./dist/esm/index.js",
24
+ "require": "./dist/cjs/index.js"
25
+ }
26
+ },
27
+ "sideEffects": false,
28
+ "devDependencies": {
29
+ "@rollup/plugin-typescript": "^12.3.0",
30
+ "@semantic-release/changelog": "^6.0.3",
31
+ "@semantic-release/git": "^10.0.1",
32
+ "@semantic-release/github": "^12.0.2",
33
+ "@types/node": "^25.0.10",
34
+ "@typescript-eslint/eslint-plugin": "^8.53.1",
35
+ "@typescript-eslint/parser": "^8.53.1",
36
+ "@vitest/coverage-v8": "4.0.18",
37
+ "eslint": "^9.39.2",
38
+ "eslint-config-prettier": "^10.1.8",
39
+ "eslint-plugin-prettier": "^5.5.5",
40
+ "husky": "^9.1.7",
41
+ "lint-staged": "^16.2.7",
42
+ "prettier": "^3.8.1",
43
+ "prettier-plugin-organize-imports": "^4.3.0",
44
+ "rollup": "^4.56.0",
45
+ "semantic-release": "^25.0.2",
46
+ "typescript": "^5.9.3",
47
+ "vitest": "^4.0.18"
48
+ },
49
+ "lint-staged": {
50
+ "*.{ts,tsx}": [
51
+ "prettier --write",
52
+ "eslint --fix",
53
+ "bash -c tsc --noEmit"
54
+ ]
55
+ },
56
+ "scripts": {
57
+ "build": "rollup -c",
58
+ "dev": "rollup -c -w",
59
+ "test": "vitest --run --passWithNoTests",
60
+ "test:watch": "vitest",
61
+ "coverage": "vitest --run --coverage --passWithNoTests",
62
+ "lint": "eslint"
63
+ }
64
+ }