@donmahallem/rollup-config 0.5.3 → 0.6.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/package.json CHANGED
@@ -1,16 +1,15 @@
1
1
  {
2
2
  "name": "@donmahallem/rollup-config",
3
- "version": "0.5.3",
3
+ "version": "0.6.0",
4
4
  "description": "My Rollup config. Do not use!",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
7
7
  "types": "dist/types/index.d.ts",
8
8
  "private": false,
9
9
  "scripts": {
10
- "build": "npm run build:esm && npm run build:cjs && npm run build:types",
11
- "build:esm": "tsc --project ./tsconfig.json --outDir ./dist/esm --module ES2020",
12
- "build:cjs": "tsc --project ./tsconfig.json --outDir ./dist/cjs --module commonjs",
13
- "build:types": "tsc --project ./tsconfig.json -d --declarationDir dist/types --declarationMap --emitDeclarationOnly",
10
+ "build": "npm run build:esm && npm run build:cjs",
11
+ "build:esm": "tsc --project ./tsconfig.dist-esm.json",
12
+ "build:cjs": "tsc --project ./tsconfig.dist-cjs.json",
14
13
  "build:readme": "npx @appnest/readme generate --input ../package_readme_blueprint.md --config readme_config.json",
15
14
  "test": "mocha --config ../../.mocharc.yml",
16
15
  "test:coverage": "nyc --nycrc-path ../../.nycrc.json npm run test",
@@ -21,7 +20,9 @@
21
20
  "docs": "typedoc --options ./typedoc.config.js",
22
21
  "prepublishOnly": "npm run test && npm run docs && npm run build",
23
22
  "version": "npm run build:readme && git add README.md",
24
- "prepare": "npm run build"
23
+ "prepare": "npm run build",
24
+ "clean": "rimraf ./dist ./.nyc_output ./coverage ./docs",
25
+ "postclean": "npm run build"
25
26
  },
26
27
  "files": [
27
28
  "dist/*",
@@ -42,7 +43,7 @@
42
43
  "url": "https://github.com/donmahallem/js-libs.git"
43
44
  },
44
45
  "engines": {
45
- "node": "^12 || ^14 || ^16"
46
+ "node": ">=14"
46
47
  },
47
48
  "publishConfig": {
48
49
  "access": "public"
@@ -52,14 +53,16 @@
52
53
  "@rollup/plugin-node-resolve": "13.0.6",
53
54
  "@rollup/plugin-replace": "3.0.0",
54
55
  "@rollup/plugin-typescript": "8.3.0",
55
- "rollup": "2.60.0"
56
+ "rollup": "2.61.0",
57
+ "rollup-plugin-dts": "4.0.1"
56
58
  },
57
59
  "peerDependencies": {
58
60
  "@rollup/plugin-json": "^4.1.0",
59
61
  "@rollup/plugin-node-resolve": "^13.0.0",
60
62
  "@rollup/plugin-replace": "^3.0.0",
61
63
  "@rollup/plugin-typescript": "^8.2.0",
62
- "rollup": "^2.39.0"
64
+ "rollup": "^2.39.0",
65
+ "rollup-plugin-dts": "^4.0.0"
63
66
  },
64
- "gitHead": "ad119be1f9a7ea42a220a2ff224d16cae5f1ab85"
67
+ "gitHead": "8b4224c36497bd7ed1422d1299235910d040070e"
65
68
  }
@@ -1,27 +0,0 @@
1
- "use strict";
2
- /*
3
- * Package @donmahallem/rollup-config
4
- * Source https://donmahallem.github.io/js-libs/
5
- */
6
- var __importDefault = (this && this.__importDefault) || function (mod) {
7
- return (mod && mod.__esModule) ? mod : { "default": mod };
8
- };
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- const chai_1 = require("chai");
11
- require("mocha");
12
- const index_1 = __importDefault(require("./index"));
13
- describe('index', () => {
14
- it('should set all plugins with default config', () => {
15
- const result = (0, index_1.default)({ name: 'testname', version: '1.2.3' });
16
- (0, chai_1.expect)(result.plugins).to.have.lengthOf(5);
17
- });
18
- it('should exclude commonjs with false as config', () => {
19
- const result = (0, index_1.default)({ name: 'testname', version: '1.2.3' }, { plugins: { commonjs: false } });
20
- (0, chai_1.expect)(result.plugins).to.have.lengthOf(4);
21
- });
22
- it('should exclude commonjs with false as config', () => {
23
- const result = (0, index_1.default)({ name: 'testname', version: '1.2.3' }, { plugins: { json: false } });
24
- (0, chai_1.expect)(result.plugins).to.have.lengthOf(4);
25
- });
26
- });
27
- //# sourceMappingURL=index.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file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https://donmahallem.github.io/js-libs/
4
- */
5
- import { expect } from 'chai';
6
- import 'mocha';
7
- import defaultConfig from './index';
8
- describe('index', () => {
9
- it('should set all plugins with default config', () => {
10
- const result = defaultConfig({ name: 'testname', version: '1.2.3' });
11
- expect(result.plugins).to.have.lengthOf(5);
12
- });
13
- it('should exclude commonjs with false as config', () => {
14
- const result = defaultConfig({ name: 'testname', version: '1.2.3' }, { plugins: { commonjs: false } });
15
- expect(result.plugins).to.have.lengthOf(4);
16
- });
17
- it('should exclude commonjs with false as config', () => {
18
- const result = defaultConfig({ name: 'testname', version: '1.2.3' }, { plugins: { json: false } });
19
- expect(result.plugins).to.have.lengthOf(4);
20
- });
21
- });
22
- //# sourceMappingURL=index.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.spec.js","sourceRoot":"","sources":["../../src/index.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,OAAO,CAAC;AAEf,OAAO,aAAa,MAAM,SAAS,CAAC;AAEpC,QAAQ,CAAC,OAAO,EAAE,GAAS,EAAE;IACzB,EAAE,CAAC,4CAA4C,EAAE,GAAS,EAAE;QACxD,MAAM,MAAM,GAAkB,aAAa,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC;QACpF,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,8CAA8C,EAAE,GAAS,EAAE;QAC1D,MAAM,MAAM,GAAkB,aAAa,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC;QACtH,MAAM,CAAC,MAAM,CAAC,OAAO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