alp-rollup-plugin-config 2.2.0 → 3.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/CHANGELOG.md +19 -0
- package/README.md +8 -8
- package/lib/index.cjs +4 -4
- package/lib/index.js +1 -2
- package/package.json +8 -8
- package/lib/.eslintrc.json +0 -20
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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
|
+
## [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
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
* update dependencies and drop node 20
|
|
11
|
+
* update dev dependencies, replace parse-json-object-as-map with native JSON.parse, update koa
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* update dependencies and drop node 20 ([fc5b322](https://github.com/christophehurpeau/alp/commit/fc5b322e076e9a3c7c4a235d16734b89fd85e211))
|
|
16
|
+
* update dev dependencies, replace parse-json-object-as-map with native JSON.parse, update koa ([5ae7723](https://github.com/christophehurpeau/alp/commit/5ae77238cafc573fe72c5eb63b103802b8b2e537))
|
|
17
|
+
|
|
18
|
+
## [2.2.1](https://github.com/christophehurpeau/alp/compare/alp-rollup-plugin-config@2.2.0...alp-rollup-plugin-config@2.2.1) (2024-01-06)
|
|
19
|
+
|
|
20
|
+
Note: no notable changes
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [2.2.0](https://github.com/christophehurpeau/alp/compare/alp-rollup-plugin-config@2.1.0...alp-rollup-plugin-config@2.2.0) (2023-12-25)
|
|
7
26
|
|
|
8
27
|
|
package/README.md
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<
|
|
1
|
+
<h1 align="center">
|
|
2
2
|
alp-rollup-plugin-config
|
|
3
|
-
</
|
|
3
|
+
</h1>
|
|
4
4
|
|
|
5
5
|
<p align="center">
|
|
6
6
|
transform yaml config using rollup copy plugin and yaml transform
|
|
7
7
|
</p>
|
|
8
8
|
|
|
9
9
|
<p align="center">
|
|
10
|
-
<a href="https://npmjs.org/package/alp-rollup-plugin-config"><img src="https://img.shields.io/npm/v/alp-rollup-plugin-config.svg?style=flat-square"></a>
|
|
11
|
-
<a href="https://npmjs.org/package/alp-rollup-plugin-config"><img src="https://img.shields.io/npm/dw/alp-rollup-plugin-config.svg?style=flat-square"></a>
|
|
12
|
-
<a href="https://npmjs.org/package/alp-rollup-plugin-config"><img src="https://img.shields.io/node/v/alp-rollup-plugin-config.svg?style=flat-square"></a>
|
|
13
|
-
<a href="https://npmjs.org/package/alp-rollup-plugin-config"><img src="https://img.shields.io/npm/types/alp-rollup-plugin-config.svg?style=flat-square"></a>
|
|
10
|
+
<a href="https://npmjs.org/package/alp-rollup-plugin-config"><img src="https://img.shields.io/npm/v/alp-rollup-plugin-config.svg?style=flat-square" alt="npm version"></a>
|
|
11
|
+
<a href="https://npmjs.org/package/alp-rollup-plugin-config"><img src="https://img.shields.io/npm/dw/alp-rollup-plugin-config.svg?style=flat-square" alt="npm downloads"></a>
|
|
12
|
+
<a href="https://npmjs.org/package/alp-rollup-plugin-config"><img src="https://img.shields.io/node/v/alp-rollup-plugin-config.svg?style=flat-square" alt="node version"></a>
|
|
13
|
+
<a href="https://npmjs.org/package/alp-rollup-plugin-config"><img src="https://img.shields.io/npm/types/alp-rollup-plugin-config.svg?style=flat-square" alt="types"></a>
|
|
14
14
|
</p>
|
|
15
15
|
|
|
16
16
|
## Install
|
|
@@ -24,12 +24,12 @@ npm install --save alp-rollup-plugin-config
|
|
|
24
24
|
> rollup.config.js
|
|
25
25
|
|
|
26
26
|
```js
|
|
27
|
-
import config from
|
|
27
|
+
import config from "alp-rollup-plugin-config";
|
|
28
28
|
|
|
29
29
|
export default {
|
|
30
30
|
plugins: [
|
|
31
31
|
config({
|
|
32
|
-
targets: [{ src:
|
|
32
|
+
targets: [{ src: "config/*", dest: "dist/config" }],
|
|
33
33
|
}),
|
|
34
34
|
],
|
|
35
35
|
};
|
package/lib/index.cjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
|
-
const { copy } = require(
|
|
4
|
-
const { load } = require(
|
|
3
|
+
const { copy } = require("@guanghechen/rollup-plugin-copy");
|
|
4
|
+
const { load } = require("js-yaml");
|
|
5
5
|
|
|
6
6
|
module.exports = (options) =>
|
|
7
7
|
copy({
|
|
8
8
|
...options,
|
|
9
9
|
targets: options.targets.map((targetOptions) => ({
|
|
10
|
-
dest:
|
|
10
|
+
dest: "build",
|
|
11
11
|
rename: (name, extension) => `${name}.json`,
|
|
12
12
|
transform: (contents, srcPath, destPath) =>
|
|
13
13
|
JSON.stringify(load(contents)).toString(),
|
package/lib/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { default } from './index.cjs';
|
|
1
|
+
export { default } from "./index.cjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alp-rollup-plugin-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
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,26 +13,26 @@
|
|
|
13
13
|
"homepage": "https://github.com/christophehurpeau/alp",
|
|
14
14
|
"type": "module",
|
|
15
15
|
"engines": {
|
|
16
|
-
"node": ">=
|
|
17
|
-
},
|
|
18
|
-
"publishConfig": {
|
|
19
|
-
"access": "public"
|
|
16
|
+
"node": ">=20.11.0"
|
|
20
17
|
},
|
|
18
|
+
"sideEffects": false,
|
|
21
19
|
"main": "./lib/index.cjs",
|
|
22
20
|
"exports": {
|
|
23
21
|
".": "./lib/index.js",
|
|
24
22
|
"./package.json": "./package.json"
|
|
25
23
|
},
|
|
26
|
-
"
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
27
27
|
"files": [
|
|
28
28
|
"lib"
|
|
29
29
|
],
|
|
30
30
|
"scripts": {
|
|
31
31
|
"lint": "yarn run lint:eslint",
|
|
32
|
-
"lint:eslint": "yarn ../.. run eslint --
|
|
32
|
+
"lint:eslint": "yarn ../.. run eslint --quiet packages/alp-rollup-plugin-config"
|
|
33
33
|
},
|
|
34
|
-
"prettier": "@pob/root/prettier-config",
|
|
35
34
|
"pob": {},
|
|
35
|
+
"prettier": "@pob/root/prettier-config",
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"rollup": "^2.64.0 || ^3.0.0 || ^4.0.0"
|
|
38
38
|
},
|
package/lib/.eslintrc.json
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"root": true,
|
|
3
|
-
"extends": ["@pob/eslint-config/node-module"],
|
|
4
|
-
"overrides": [
|
|
5
|
-
{
|
|
6
|
-
"files": ["**/*.test.{cjs,js}", "__tests__/**/*.{cjs,js}"],
|
|
7
|
-
"env": {
|
|
8
|
-
"jest": true
|
|
9
|
-
},
|
|
10
|
-
"rules": {
|
|
11
|
-
"import/no-extraneous-dependencies": [
|
|
12
|
-
"error",
|
|
13
|
-
{
|
|
14
|
-
"devDependencies": true
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
]
|
|
20
|
-
}
|