@citolab/tspci 2.5.17 → 2.5.19
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 +16 -0
- package/package.json +12 -12
- package/src/rollup.config.dev.js +15 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 2.5.19 (2024-10-15)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @citolab/tspci
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 2.5.18 (2024-10-15)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @citolab/tspci
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## 2.5.17 (2024-10-15)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @citolab/tspci
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@citolab/tspci",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.19",
|
|
4
4
|
"description": "an opiniated typescript ims-pci builder with tao integration",
|
|
5
5
|
"author": "patrick <patrick.deklein@cito.nl>",
|
|
6
6
|
"repository": "@citolab/tspci",
|
|
@@ -14,29 +14,29 @@
|
|
|
14
14
|
"type": "module",
|
|
15
15
|
"types": "types/index.d.ts",
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@rollup/plugin-alias": "^5.1.
|
|
17
|
+
"@rollup/plugin-alias": "^5.1.1",
|
|
18
18
|
"@rollup/plugin-babel": "^6.0.4",
|
|
19
|
-
"@rollup/plugin-commonjs": "^
|
|
19
|
+
"@rollup/plugin-commonjs": "^28.0.0",
|
|
20
20
|
"@rollup/plugin-image": "^3.0.3",
|
|
21
21
|
"@rollup/plugin-json": "^6.1.0",
|
|
22
|
-
"@rollup/plugin-node-resolve": "^15.
|
|
23
|
-
"@rollup/plugin-replace": "^
|
|
22
|
+
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
23
|
+
"@rollup/plugin-replace": "^6.0.1",
|
|
24
24
|
"@rollup/plugin-terser": "^0.4.4",
|
|
25
|
-
"@rollup/plugin-typescript": "^
|
|
25
|
+
"@rollup/plugin-typescript": "^12.1.0",
|
|
26
26
|
"@tailwindcss/nesting": "0.0.0-insiders.565cd3e",
|
|
27
27
|
"@testing-library/dom": "^10.4.0",
|
|
28
28
|
"@types/node": "^22.5.5",
|
|
29
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
30
|
-
"@typescript-eslint/parser": "^8.
|
|
29
|
+
"@typescript-eslint/eslint-plugin": "^8.9.0",
|
|
30
|
+
"@typescript-eslint/parser": "^8.9.0",
|
|
31
31
|
"autoprefixer": "10.4.20",
|
|
32
32
|
"chalk": "5.3.0",
|
|
33
33
|
"clear": "0.1.0",
|
|
34
|
-
"figlet": "1.
|
|
35
|
-
"inquirer": "
|
|
34
|
+
"figlet": "1.8.0",
|
|
35
|
+
"inquirer": "12.0.0",
|
|
36
36
|
"live-server": "^1.2.2",
|
|
37
37
|
"postcss": "^8.4.47",
|
|
38
38
|
"postcss-import": "^16.1.0",
|
|
39
|
-
"rollup": "^4.
|
|
39
|
+
"rollup": "^4.24.0",
|
|
40
40
|
"rollup-plugin-copy": "^3.5.0",
|
|
41
41
|
"rollup-plugin-live-server": "^2.0.0",
|
|
42
42
|
"rollup-plugin-livereload": "^2.0.5",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"rollup-plugin-string": "^3.0.0",
|
|
47
47
|
"tailwindcss": "^3.4.11"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "0f2b5c6c624425f0c7fc0da0636d401a288fc004"
|
|
50
50
|
}
|
package/src/rollup.config.dev.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import copy from "rollup-plugin-copy";
|
|
2
2
|
import livereload from "rollup-plugin-livereload";
|
|
3
|
-
// PK: not the official npm package, but a copy, needed watch
|
|
3
|
+
// PK: not the official npm package, but a copy, needed watch functionality
|
|
4
4
|
import { liveServer } from "./rollup-plugin-live-server.js";
|
|
5
|
-
|
|
6
5
|
import path from "path";
|
|
6
|
+
import rollupConfig from "./rollup.config.js"; // Make sure this exports an object with `output` and `plugins`
|
|
7
7
|
|
|
8
8
|
const PACKAGE_ROOT_PATH = process.cwd();
|
|
9
9
|
const PACKAGE_DIST_PATH = path.join(PACKAGE_ROOT_PATH, "dist");
|
|
10
10
|
|
|
11
|
+
// Configure live server
|
|
11
12
|
const livesrvr = liveServer({
|
|
12
13
|
root: path.join(PACKAGE_ROOT_PATH),
|
|
13
14
|
mount: [["/", "./dist"]],
|
|
@@ -16,6 +17,7 @@ const livesrvr = liveServer({
|
|
|
16
17
|
watch: PACKAGE_DIST_PATH,
|
|
17
18
|
});
|
|
18
19
|
|
|
20
|
+
// Configure copy plugin to watch for changes
|
|
19
21
|
const watchassets = copy({
|
|
20
22
|
targets: [
|
|
21
23
|
{ src: "./src/**/*.json", dest: "dist" },
|
|
@@ -25,12 +27,19 @@ const watchassets = copy({
|
|
|
25
27
|
watch: true, // Enable watching for changes
|
|
26
28
|
});
|
|
27
29
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
// Modify the existing Rollup config
|
|
30
31
|
const newRollupConfig = {
|
|
31
32
|
...rollupConfig,
|
|
32
|
-
output: rollupConfig.output.map((output) => ({
|
|
33
|
-
|
|
33
|
+
output: rollupConfig.output.map((output) => ({
|
|
34
|
+
...output,
|
|
35
|
+
sourcemap: true, // Ensure sourcemaps are enabled
|
|
36
|
+
})),
|
|
37
|
+
plugins: [
|
|
38
|
+
...rollupConfig.plugins, // Keep existing plugins
|
|
39
|
+
watchassets, // Add your custom watch functionality
|
|
40
|
+
livereload(PACKAGE_DIST_PATH), // Reload after copying
|
|
41
|
+
livesrvr, // Start the live server
|
|
42
|
+
],
|
|
34
43
|
};
|
|
35
44
|
|
|
36
45
|
export default newRollupConfig;
|