pkgbld 1.14.6 → 1.15.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.
@@ -1 +1 @@
1
- export declare const mainLoggerText: (sourceDir: string, dir: string, configsCount: number, startingTime: number, finishedCount?: number) => (final?: boolean) => string;
1
+ export declare const mainLoggerText: (sourceDir: string, dir: string, configsCount: number, startingTime: number, finishedCount?: number) => (final?: boolean) => string;
@@ -1,3 +1,3 @@
1
- import { getCliOptions } from './get-cli-options';
2
- import { Json } from './types';
3
- export declare function processPackage(pkg: Json, config: ReturnType<typeof getCliOptions>): string[];
1
+ import { getCliOptions } from './get-cli-options';
2
+ import { Json } from './types';
3
+ export declare function processPackage(pkg: Json, config: ReturnType<typeof getCliOptions>): string[];
package/dist/types.d.ts CHANGED
@@ -1,24 +1,43 @@
1
- import { Plugin, InternalModuleFormat } from 'rollup';
2
- /**
3
- * export interface Replacer {
4
- name: string;
5
- used: () => void;
6
- }*/
7
- export type Json = null | string | number | boolean | Json[] | {
8
- [name: string]: Json;
9
- };
10
- export declare const enum Priotiry {
11
- preprocess = 1000,
12
- cleanup = 1000,
13
- externals = 2000,
14
- resolve = 3000,
15
- commonjs = 4000,
16
- transpile = 6000,
17
- compress = 10000,
18
- finalize = 20000
19
- }
20
- export type Provider = (factory: () => Plugin, priority: Priotiry, options?: {
21
- format?: InternalModuleFormat | InternalModuleFormat[];
22
- inputs?: string[];
23
- outputPlugin?: true;
24
- }) => void;
1
+ import type { Plugin, InternalModuleFormat } from 'rollup';
2
+ /**
3
+ * export interface Replacer {
4
+ name: string;
5
+ used: () => void;
6
+ }*/
7
+ export type Json = null | string | number | boolean | Json[] | {
8
+ [name: string]: Json;
9
+ };
10
+ export type PackageJson = {
11
+ name: string;
12
+ dependencies?: Record<string, string>;
13
+ devDependencies?: Record<string, string>;
14
+ peerDependencies: Record<string, string>;
15
+ };
16
+ export declare const enum Priotiry {
17
+ preprocess = 1000,
18
+ cleanup = 1000,
19
+ externals = 2000,
20
+ resolve = 3000,
21
+ commonjs = 4000,
22
+ transpile = 6000,
23
+ compress = 10000,
24
+ finalize = 20000
25
+ }
26
+ export type ProvideFunction = (factory: () => Plugin, priority: Priotiry, options?: {
27
+ format?: InternalModuleFormat | InternalModuleFormat[];
28
+ inputs?: string[];
29
+ outputPlugin?: true;
30
+ }) => void;
31
+ export type Provider = {
32
+ provide: ProvideFunction;
33
+ import: (module: string, exportName?: string) => Promise<((...args: unknown[]) => Plugin)>;
34
+ globalImport: (module: string, exportName?: string | string[]) => void;
35
+ globalSetupt: (code: Function | string) => void;
36
+ };
37
+ export type PkgbldRollupPlugin = {
38
+ plugin: () => Plugin;
39
+ priority: Priotiry;
40
+ format?: InternalModuleFormat | InternalModuleFormat[];
41
+ inputs?: string[];
42
+ outputPlugin?: true;
43
+ };
@@ -0,0 +1,2 @@
1
+ import { Json } from './types';
2
+ export declare function writeJson(path: string, json: Json): Promise<void>;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.14.6",
2
+ "version": "1.15.1",
3
3
  "license": "MIT",
4
4
  "name": "pkgbld",
5
5
  "author": {
@@ -30,26 +30,29 @@
30
30
  "rollup"
31
31
  ],
32
32
  "devDependencies": {
33
- "@types/lodash": "4.14.191",
34
- "@types/minimist": "1.2.2"
33
+ "@types/lodash": "^4.14.192",
34
+ "@types/minimist": "^1.2.2"
35
35
  },
36
36
  "dependencies": {
37
- "@niceties/logger": "1.1.10",
38
- "@niceties/draftlog-appender": "1.3.0",
39
- "lodash": "4.17.21",
40
- "rollup": "3.17.2",
41
- "rollup-plugin-typescript2": "0.34.1",
42
- "rollup-plugin-preprocess": "0.0.4",
43
- "@rollup/plugin-commonjs": "24.0.1",
44
- "@rollup/plugin-terser": "0.4.0",
45
- "@rollup/plugin-node-resolve": "15.0.1",
46
- "@rollup-extras/plugin-clean": "1.3.4",
47
- "@rollup-extras/plugin-binify": "1.1.5",
48
- "@rollup-extras/plugin-externals": "1.1.8",
49
- "@slimlib/refine-partition": "1.0.0",
50
- "typescript": "4.9.5",
51
- "minimist": "1.2.8",
52
- "kleur": "4.1.5"
37
+ "@niceties/logger": "^1.1.10",
38
+ "@niceties/draftlog-appender": "^1.3.0",
39
+ "lodash": "^4.17.21",
40
+ "rollup": "^3.20.2",
41
+ "rollup-plugin-typescript2": "^0.34.1",
42
+ "rollup-plugin-preprocess": "^0.0.4",
43
+ "@rollup/plugin-commonjs": "^24.0.1",
44
+ "@rollup/plugin-terser": "^0.4.0",
45
+ "@rollup/plugin-node-resolve": "^15.0.1",
46
+ "@rollup-extras/plugin-clean": "^1.3.4",
47
+ "@rollup-extras/plugin-binify": "^1.1.5",
48
+ "@rollup-extras/plugin-externals": "^1.1.8",
49
+ "@slimlib/refine-partition": "^1.0.0",
50
+ "@slimlib/smart-mock": "^0.1.2",
51
+ "is-builtin-module": "^3.2.1",
52
+ "typescript": "^5.0.2",
53
+ "terser": "^5.16.8",
54
+ "minimist": "^1.2.8",
55
+ "kleur": "^4.1.5"
53
56
  },
54
57
  "scripts": {
55
58
  "build": "rollup -c",
@@ -1,2 +0,0 @@
1
- import { Json } from './types';
2
- export declare function writePackage(pkgPath: string, pkg: Json): Promise<void>;