@forsakringskassan/vue-lib-template 1.9.4 → 1.9.6

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.
@@ -18,6 +18,6 @@
18
18
  "@tsconfig/recommended": "1.0.13",
19
19
  "http-server": "14.1.1",
20
20
  "msw": "2.15.0",
21
- "vue": "3.5.43"
21
+ "vue": "3.5.44"
22
22
  }
23
23
  }
@@ -112,11 +112,11 @@
112
112
  "@forsakringskassan/stylelint-config": "3.5.1",
113
113
  "@forsakringskassan/vite-lib-config": "5.13.3",
114
114
  "@forsakringskassan/vitest-config-jsdom": "5.0.1",
115
- "@forsakringskassan/vue-lib-template": "1.9.4",
115
+ "@forsakringskassan/vue-lib-template": "1.9.6",
116
116
  "@html-validate/release-scripts": "7.6.14",
117
117
  "@types/node": "24.19.2",
118
118
  "@typescript/native": "npm:typescript@7.0.2",
119
- "@vue/server-renderer": "3.5.43",
119
+ "@vue/server-renderer": "3.5.44",
120
120
  "@vue/test-utils": "2.5.1",
121
121
  "cloneman": "1.28.0",
122
122
  "core-js": "3.50.0",
@@ -131,7 +131,7 @@
131
131
  "typescript": "npm:@typescript/typescript6@6.0.2",
132
132
  "vite": "8.3.4",
133
133
  "vitest": "5.0.4",
134
- "vue": "3.5.43",
134
+ "vue": "3.5.44",
135
135
  "vue-tsc": "3.3.13"
136
136
  },
137
137
  "peerDependencies": {
package/hooks/install.mjs CHANGED
@@ -13,6 +13,34 @@ async function updatePackagejson(context ) {
13
13
  });
14
14
  }
15
15
 
16
+ /**
17
+ * Update placeholder names with the real application name (from `package.json`)
18
+ */
19
+ async function updatePackageName(context ) {
20
+ const { getApplicationName, replaceInFile } = context;
21
+ const scopedName = getApplicationName();
22
+ const placeholder = /"@forsakringskassan\/vue-lib-template(\/[^"]+)?"/g;
23
+ const filenames = [
24
+ "cypress/tsconfig.json",
25
+ "docs/index.md",
26
+ "etc/lib.api.md",
27
+ "etc/selectors.api.md",
28
+ "etc/tsconfig.json",
29
+ "src/components/guide/cat-info/examples/cat-info-example.vue",
30
+ "tsconfig.cypress.json",
31
+ "tsconfig.lib.json",
32
+ "tsconfig.selectors.json",
33
+ ];
34
+ for (const filename of filenames) {
35
+ await replaceInFile(filename, placeholder, (_, subpath) => {
36
+ return `"${scopedName}${subpath ?? ""}"`;
37
+ });
38
+ }
39
+ }
40
+
41
+ /**
42
+ * Enable deployment of documentation if a documentation url is provided
43
+ */
16
44
  async function enableDeployDocs(context ) {
17
45
  const { getParameter, replaceInFile } = context;
18
46
  const url = getParameter("docs-repo-url");
@@ -24,31 +52,7 @@ async function enableDeployDocs(context ) {
24
52
  }
25
53
 
26
54
  export async function install(context ) {
27
- const { getApplicationName, replaceInFile } = context;
28
- const scopedName = getApplicationName();
29
-
30
55
  await updatePackagejson(context);
31
-
32
- /* update placeholder names with the real application name (from package.json) */
33
- const placeholder = /"@forsakringskassan\/vue-lib-template(\/[^"]+)?"/g;
34
- const quotedName = (_ , subpath ) => {
35
- return `"${scopedName}${subpath ?? ""}"`;
36
- };
37
- await replaceInFile("cypress/tsconfig.json", placeholder, quotedName);
38
- await replaceInFile("tsconfig.lib.json", placeholder, quotedName);
39
- await replaceInFile("tsconfig.cypress.json", placeholder, quotedName);
40
- await replaceInFile("tsconfig.selectors.json", placeholder, quotedName);
41
- await replaceInFile(
42
- "src/components/guide/cat-info/examples/cat-info-example.vue",
43
- placeholder,
44
- quotedName,
45
- );
46
- await replaceInFile(
47
- "src/components/guide/cat-info/examples/cat-info-live-example.vue",
48
- placeholder,
49
- quotedName,
50
- );
51
-
52
- /* enable deployment of documentation if a documentation url is provided */
56
+ await updatePackageName(context);
53
57
  await enableDeployDocs(context);
54
58
  }
package/index.js CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  const options = {
9
9
  ...packageJson.cloneman,
10
- fileHash: "b592f1d4280cf1bf3a6fcf21bcfee641cfa5c1f6a0cad86d3e8ffecf6d68c9d0",
10
+ fileHash: "0e117271c529cfa408f05e85b97c144b060ea443f748629b8f544e92593adbfe",
11
11
  apiVersion: 0,
12
12
  clonemanVersion: "1.27.2",
13
13
  filesDir: path.join(import.meta.dirname, "files"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forsakringskassan/vue-lib-template",
3
- "version": "1.9.4",
3
+ "version": "1.9.6",
4
4
  "description": "Vue library template based on Cloneman",
5
5
  "keywords": [
6
6
  "template",