@donmahallem/rollup-config 4.1.86 → 4.1.87
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/package.json +10 -10
- package/src/base-config.spec.ts +6 -4
- package/src/index.spec.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@donmahallem/rollup-config",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.87",
|
|
4
4
|
"description": "My Rollup config. Use at your own risk!",
|
|
5
5
|
"exports": {
|
|
6
6
|
"import": "./dist/esm/index.js",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"build:readme": "npx @appnest/readme generate --input ./package_readme_blueprint.md --config readme_config.json",
|
|
18
18
|
"test": "mocha --config ./.mocharc.json",
|
|
19
19
|
"test:coverage": "c8 --config ./.nycrc.json npm run test",
|
|
20
|
-
"lint": "eslint -c ./.eslintrc.
|
|
20
|
+
"lint": "eslint -c ./.eslintrc.mjs ./src",
|
|
21
21
|
"postlint": "prettier --config ./.prettierrc src/**/*.ts --check",
|
|
22
|
-
"lint:fix": "eslint -c ./.eslintrc.
|
|
22
|
+
"lint:fix": "eslint -c ./.eslintrc.mjs ./src --fix",
|
|
23
23
|
"postlint:fix": "prettier --config ./.prettierrc src/**/*.ts --write",
|
|
24
24
|
"docs": "typedoc --options ./typedoc.json",
|
|
25
25
|
"prepublishOnly": "npm run test && npm run docs && npm run build",
|
|
@@ -52,23 +52,23 @@
|
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@appnest/readme": "1.2.7",
|
|
55
|
-
"@donmahallem/eslint-config": "2.
|
|
55
|
+
"@donmahallem/eslint-config": "2.2.2",
|
|
56
56
|
"@semantic-release/changelog": "6.0.3",
|
|
57
57
|
"@semantic-release/git": "10.0.1",
|
|
58
58
|
"@types/chai": "5.0.1",
|
|
59
59
|
"@types/mocha": "10.0.10",
|
|
60
|
-
"@types/node": "22.13.
|
|
60
|
+
"@types/node": "22.13.4",
|
|
61
61
|
"c8": "10.1.3",
|
|
62
62
|
"chai": "5.1.2",
|
|
63
63
|
"colors": "1.4.0",
|
|
64
|
-
"eslint": "
|
|
64
|
+
"eslint": "9.20.1",
|
|
65
65
|
"mocha": "11.1.0",
|
|
66
66
|
"nyc": "17.1.0",
|
|
67
|
-
"prettier": "3.
|
|
68
|
-
"semantic-release": "24.2.
|
|
67
|
+
"prettier": "3.5.1",
|
|
68
|
+
"semantic-release": "24.2.2",
|
|
69
69
|
"ts-node": "10.9.2",
|
|
70
70
|
"tslib": "2.8.1",
|
|
71
|
-
"typedoc": "0.27.
|
|
71
|
+
"typedoc": "0.27.7",
|
|
72
72
|
"typescript": "5.7.3"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@rollup/plugin-node-resolve": "~16.0.0",
|
|
78
78
|
"@rollup/plugin-replace": "~6.0.2",
|
|
79
79
|
"@rollup/plugin-typescript": "~12.1.2",
|
|
80
|
-
"rollup": "~4.34.
|
|
80
|
+
"rollup": "~4.34.7",
|
|
81
81
|
"rollup-plugin-dts": "~6.1.1"
|
|
82
82
|
}
|
|
83
83
|
}
|
package/src/base-config.spec.ts
CHANGED
|
@@ -8,16 +8,18 @@ import 'mocha';
|
|
|
8
8
|
import { RollupOptions } from 'rollup';
|
|
9
9
|
import { baseConfig } from './base-config.js';
|
|
10
10
|
|
|
11
|
-
describe('base-config.spec.ts', (): void
|
|
12
|
-
it('should set all plugins with default config', (): void
|
|
11
|
+
describe('base-config.spec.ts', function (): void {
|
|
12
|
+
it('should set all plugins with default config 1', function (): void {
|
|
13
13
|
const result: RollupOptions = baseConfig({ name: 'testname', version: '1.2.3' });
|
|
14
14
|
expect(result.plugins).to.have.lengthOf(5);
|
|
15
15
|
});
|
|
16
|
-
|
|
16
|
+
|
|
17
|
+
it('should exclude commonjs with false as config 2', function (): void {
|
|
17
18
|
const result: RollupOptions = baseConfig({ name: 'testname', version: '1.2.3' }, { plugins: { commonjs: false } });
|
|
18
19
|
expect(result.plugins).to.have.lengthOf(4);
|
|
19
20
|
});
|
|
20
|
-
|
|
21
|
+
|
|
22
|
+
it('should exclude commonjs with false as config 3', function (): void {
|
|
21
23
|
const result: RollupOptions = baseConfig({ name: 'testname', version: '1.2.3' }, { plugins: { json: false } });
|
|
22
24
|
expect(result.plugins).to.have.lengthOf(4);
|
|
23
25
|
});
|
package/src/index.spec.ts
CHANGED
|
@@ -8,8 +8,8 @@ import 'mocha';
|
|
|
8
8
|
import { RollupOptions } from 'rollup';
|
|
9
9
|
import defaultConfig from './index.js';
|
|
10
10
|
|
|
11
|
-
describe('index.ts', (): void
|
|
12
|
-
it('should set all plugins with default config', (): void
|
|
11
|
+
describe('index.ts', function (): void {
|
|
12
|
+
it('should set all plugins with default config', function (): void {
|
|
13
13
|
const result: RollupOptions = defaultConfig({ name: 'testname', version: '1.2.3' });
|
|
14
14
|
expect(result.plugins).to.have.lengthOf(5);
|
|
15
15
|
});
|