alp-rollup-plugin-config 3.0.0 → 4.0.1

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 CHANGED
@@ -3,6 +3,21 @@
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
+ ## [4.0.1](https://github.com/christophehurpeau/alp/compare/alp-rollup-plugin-config@4.0.0...alp-rollup-plugin-config@4.0.1) (2025-11-12)
7
+
8
+ Note: no notable changes
9
+
10
+
11
+ ## [4.0.0](https://github.com/christophehurpeau/alp/compare/alp-rollup-plugin-config@3.0.0...alp-rollup-plugin-config@4.0.0) (2025-10-27)
12
+
13
+ ### ⚠ BREAKING CHANGES
14
+
15
+ * drop node 20 and build using esbuild
16
+
17
+ ### Features
18
+
19
+ * drop node 20 and build using esbuild ([812c4c1](https://github.com/christophehurpeau/alp/commit/812c4c1b0ad19984e389af4382a8d1e60643e4f1))
20
+
6
21
  ## [3.0.0](https://github.com/christophehurpeau/alp/compare/alp-rollup-plugin-config@2.2.1...alp-rollup-plugin-config@3.0.0) (2025-08-02)
7
22
 
8
23
  ### ⚠ BREAKING CHANGES
package/lib/index.d.ts ADDED
@@ -0,0 +1,17 @@
1
+ import { Plugin } from "rollup";
2
+
3
+ interface TargetOptions {
4
+ src: string;
5
+ dest?: string;
6
+ rename?: (name: string, extension: string) => string;
7
+ transform?: (contents: string, srcPath: string, destPath: string) => string;
8
+ }
9
+
10
+ interface PluginOptions {
11
+ targets: TargetOptions[];
12
+ [key: string]: any;
13
+ }
14
+
15
+ declare function alpRollupPluginConfig(options: PluginOptions): Plugin;
16
+
17
+ export = alpRollupPluginConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alp-rollup-plugin-config",
3
- "version": "3.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "transform yaml config using rollup copy plugin and yaml transform",
5
5
  "keywords": [],
6
6
  "author": "Christophe Hurpeau <christophe@hurpeau.com> (https://christophe.hurpeau.com)",
@@ -13,13 +13,19 @@
13
13
  "homepage": "https://github.com/christophehurpeau/alp",
14
14
  "type": "module",
15
15
  "engines": {
16
- "node": ">=20.11.0"
16
+ "node": ">=22.18.0"
17
17
  },
18
18
  "sideEffects": false,
19
19
  "main": "./lib/index.cjs",
20
+ "types": "./lib/index.d.ts",
20
21
  "exports": {
21
- ".": "./lib/index.js",
22
- "./package.json": "./package.json"
22
+ "./package.json": "./package.json",
23
+ ".": {
24
+ "types": "./lib/index.d.ts",
25
+ "node": {
26
+ "import": "./lib/index.cjs"
27
+ }
28
+ }
23
29
  },
24
30
  "publishConfig": {
25
31
  "access": "public"
@@ -28,10 +34,14 @@
28
34
  "lib"
29
35
  ],
30
36
  "scripts": {
37
+ "build": "yarn run build:definitions",
38
+ "build:definitions": "tsc --lib esnext --noEmit --skipLibCheck ./lib/index.d.ts",
31
39
  "lint": "yarn run lint:eslint",
32
40
  "lint:eslint": "yarn ../.. run eslint --quiet packages/alp-rollup-plugin-config"
33
41
  },
34
- "pob": {},
42
+ "pob": {
43
+ "bundler": false
44
+ },
35
45
  "prettier": "@pob/root/prettier-config",
36
46
  "peerDependencies": {
37
47
  "rollup": "^2.64.0 || ^3.0.0 || ^4.0.0"
@@ -39,5 +49,8 @@
39
49
  "dependencies": {
40
50
  "@guanghechen/rollup-plugin-copy": "1.8.6",
41
51
  "js-yaml": "4.1.0"
52
+ },
53
+ "devDependencies": {
54
+ "typescript": "5.9.3"
42
55
  }
43
56
  }