deboa 1.0.0 → 1.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.
Files changed (46) hide show
  1. package/README.md +10 -0
  2. package/dist/{esm/types → cjs}/classes/Deboa.d.ts +1 -0
  3. package/dist/cjs/classes/Deboa.js +10 -3
  4. package/dist/cjs/{types/classes → classes}/DeboaFromFile.d.ts +0 -0
  5. package/dist/cjs/index.d.ts +4 -0
  6. package/dist/cjs/types/{types/IAddTarEntriesParams.d.ts → IAddTarEntriesParams.d.ts} +0 -0
  7. package/dist/cjs/types/{types/IControlFileOptions.d.ts → IControlFileOptions.d.ts} +1 -2
  8. package/dist/cjs/types/{types/IDeboa.d.ts → IDeboa.d.ts} +0 -0
  9. package/dist/cjs/types/{types/IDeboaFromFile.d.ts → IDeboaFromFile.d.ts} +0 -0
  10. package/dist/cjs/types/{types/INormalizeOptionsLength.d.ts → INormalizeOptionsLength.d.ts} +0 -0
  11. package/dist/cjs/types/{types/IWriteFileFromLinesArgs.d.ts → IWriteFileFromLinesArgs.d.ts} +0 -0
  12. package/dist/cjs/types/{types/IWriteToArchive.d.ts → IWriteToArchive.d.ts} +0 -0
  13. package/dist/cjs/types/{types/MaintainerScript.d.ts → MaintainerScript.d.ts} +0 -0
  14. package/dist/cjs/types/{types/Section.d.ts → Section.d.ts} +0 -0
  15. package/dist/cjs/types/index.d.ts +9 -4
  16. package/dist/cjs/types/index.js +0 -1
  17. package/dist/cjs/{types/utils → utils}/addTarEntries.d.ts +0 -0
  18. package/dist/cjs/{types/utils → utils}/createFileHeader.d.ts +0 -0
  19. package/dist/cjs/{types/utils → utils}/writeFileFromLines.d.ts +0 -0
  20. package/dist/cjs/{types/utils → utils}/writeToArchive.d.ts +0 -0
  21. package/dist/{cjs/types → esm}/classes/Deboa.d.ts +1 -0
  22. package/dist/esm/classes/Deboa.js +1 -0
  23. package/dist/esm/{types/classes → classes}/DeboaFromFile.d.ts +0 -0
  24. package/dist/esm/index.d.ts +4 -0
  25. package/dist/esm/types/{types/IAddTarEntriesParams.d.ts → IAddTarEntriesParams.d.ts} +0 -0
  26. package/dist/esm/types/{types/IControlFileOptions.d.ts → IControlFileOptions.d.ts} +1 -2
  27. package/dist/esm/types/{types/IDeboa.d.ts → IDeboa.d.ts} +0 -0
  28. package/dist/esm/types/{types/IDeboaFromFile.d.ts → IDeboaFromFile.d.ts} +0 -0
  29. package/dist/esm/types/{types/INormalizeOptionsLength.d.ts → INormalizeOptionsLength.d.ts} +0 -0
  30. package/dist/esm/types/{types/IWriteFileFromLinesArgs.d.ts → IWriteFileFromLinesArgs.d.ts} +0 -0
  31. package/dist/esm/types/{types/IWriteToArchive.d.ts → IWriteToArchive.d.ts} +0 -0
  32. package/dist/esm/types/{types/MaintainerScript.d.ts → MaintainerScript.d.ts} +0 -0
  33. package/dist/esm/types/{types/Section.d.ts → Section.d.ts} +0 -0
  34. package/dist/esm/types/index.d.ts +9 -4
  35. package/dist/esm/types/index.js +0 -1
  36. package/dist/esm/{types/utils → utils}/addTarEntries.d.ts +0 -0
  37. package/dist/esm/{types/utils → utils}/createFileHeader.d.ts +0 -0
  38. package/dist/esm/{types/utils → utils}/writeFileFromLines.d.ts +0 -0
  39. package/dist/esm/{types/utils → utils}/writeToArchive.d.ts +0 -0
  40. package/package.json +1 -1
  41. package/dist/cjs/types/Priority.js +0 -4
  42. package/dist/cjs/types/types/Priority.d.ts +0 -1
  43. package/dist/cjs/types/types/index.d.ts +0 -10
  44. package/dist/esm/types/Priority.js +0 -1
  45. package/dist/esm/types/types/Priority.d.ts +0 -1
  46. package/dist/esm/types/types/index.d.ts +0 -10
package/README.md CHANGED
@@ -29,6 +29,16 @@ any number of metadata/file contents pairs.
29
29
  - the `data` file, which contains the actual software
30
30
 
31
31
 
32
+ # Installation
33
+
34
+ ```shell
35
+ # Yarn
36
+ yarn add --dev deboa
37
+
38
+ # npm
39
+ npm i -D deboa
40
+ ```
41
+
32
42
  # API
33
43
 
34
44
  ## Creating a .deb from scratch
@@ -42,3 +42,4 @@ declare class Deboa implements IDeboa {
42
42
  loadHooks(): Promise<void>;
43
43
  }
44
44
  export { Deboa };
45
+ export default Deboa;
@@ -2,9 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", {
3
3
  value: true
4
4
  });
5
- Object.defineProperty(exports, "Deboa", {
6
- enumerable: true,
7
- get: ()=>Deboa
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ default: ()=>_default,
13
+ Deboa: ()=>Deboa
8
14
  });
9
15
  const _events = require("events");
10
16
  const _os = /*#__PURE__*/ _interopRequireDefault(require("os"));
@@ -488,3 +494,4 @@ function _interopRequireWildcard(obj, nodeInterop) {
488
494
  }
489
495
  }
490
496
  }
497
+ var _default = Deboa;
@@ -0,0 +1,4 @@
1
+ import { Deboa } from './classes/Deboa';
2
+ import { DeboaFromFile } from './classes/DeboaFromFile';
3
+ export { Deboa, DeboaFromFile };
4
+ export * from './types';
@@ -1,5 +1,4 @@
1
1
  import { MaintainerScript } from './MaintainerScript';
2
- import { Priority } from './Priority';
3
2
  import { Section } from './Section';
4
3
  /**
5
4
  * The descriptions are mostly just shameless copies from the following docs:
@@ -91,7 +90,7 @@ export interface IControlFileOptions {
91
90
  *
92
91
  * {@link https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-priority}
93
92
  */
94
- priority?: Priority;
93
+ priority?: 'required' | 'important' | 'standard' | 'optional';
95
94
  /**
96
95
  * {@link https://www.debian.org/doc/debian-policy/ch-relationships.html}
97
96
  */
@@ -1,4 +1,9 @@
1
- import { Deboa } from './classes/Deboa';
2
- import { DeboaFromFile } from './classes/DeboaFromFile';
3
- export { Deboa, DeboaFromFile };
4
- export * from './types';
1
+ export * from './IAddTarEntriesParams';
2
+ export * from './IControlFileOptions';
3
+ export * from './IDeboa';
4
+ export * from './IDeboaFromFile';
5
+ export * from './INormalizeOptionsLength';
6
+ export * from './IWriteFileFromLinesArgs';
7
+ export * from './IWriteToArchive';
8
+ export * from './MaintainerScript';
9
+ export * from './Section';
@@ -10,7 +10,6 @@ _exportStar(require("./INormalizeOptionsLength"), exports);
10
10
  _exportStar(require("./IWriteFileFromLinesArgs"), exports);
11
11
  _exportStar(require("./IWriteToArchive"), exports);
12
12
  _exportStar(require("./MaintainerScript"), exports);
13
- _exportStar(require("./Priority"), exports);
14
13
  _exportStar(require("./Section"), exports);
15
14
  function _exportStar(from, to) {
16
15
  Object.keys(from).forEach(function(k) {
@@ -42,3 +42,4 @@ declare class Deboa implements IDeboa {
42
42
  loadHooks(): Promise<void>;
43
43
  }
44
44
  export { Deboa };
45
+ export default Deboa;
@@ -437,3 +437,4 @@ import { addTarEntries } from '../utils/addTarEntries';
437
437
  }
438
438
  }
439
439
  export { Deboa };
440
+ export default Deboa;
@@ -0,0 +1,4 @@
1
+ import { Deboa } from './classes/Deboa';
2
+ import { DeboaFromFile } from './classes/DeboaFromFile';
3
+ export { Deboa, DeboaFromFile };
4
+ export * from './types';
@@ -1,5 +1,4 @@
1
1
  import { MaintainerScript } from './MaintainerScript';
2
- import { Priority } from './Priority';
3
2
  import { Section } from './Section';
4
3
  /**
5
4
  * The descriptions are mostly just shameless copies from the following docs:
@@ -91,7 +90,7 @@ export interface IControlFileOptions {
91
90
  *
92
91
  * {@link https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-priority}
93
92
  */
94
- priority?: Priority;
93
+ priority?: 'required' | 'important' | 'standard' | 'optional';
95
94
  /**
96
95
  * {@link https://www.debian.org/doc/debian-policy/ch-relationships.html}
97
96
  */
@@ -1,4 +1,9 @@
1
- import { Deboa } from './classes/Deboa';
2
- import { DeboaFromFile } from './classes/DeboaFromFile';
3
- export { Deboa, DeboaFromFile };
4
- export * from './types';
1
+ export * from './IAddTarEntriesParams';
2
+ export * from './IControlFileOptions';
3
+ export * from './IDeboa';
4
+ export * from './IDeboaFromFile';
5
+ export * from './INormalizeOptionsLength';
6
+ export * from './IWriteFileFromLinesArgs';
7
+ export * from './IWriteToArchive';
8
+ export * from './MaintainerScript';
9
+ export * from './Section';
@@ -6,5 +6,4 @@ export * from './INormalizeOptionsLength';
6
6
  export * from './IWriteFileFromLinesArgs';
7
7
  export * from './IWriteToArchive';
8
8
  export * from './MaintainerScript';
9
- export * from './Priority';
10
9
  export * from './Section';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "deboa",
3
3
  "author": "Erik Moura <erikian@erikian.dev>",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "description": "Create .deb files in any platform with Node.js",
6
6
  "main": "./dist/cjs/index.js",
7
7
  "module": "./dist/esm/index.js",
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
@@ -1 +0,0 @@
1
- export declare type Priority = 'required' | 'important' | 'standard' | 'optional';
@@ -1,10 +0,0 @@
1
- export * from './IAddTarEntriesParams';
2
- export * from './IControlFileOptions';
3
- export * from './IDeboa';
4
- export * from './IDeboaFromFile';
5
- export * from './INormalizeOptionsLength';
6
- export * from './IWriteFileFromLinesArgs';
7
- export * from './IWriteToArchive';
8
- export * from './MaintainerScript';
9
- export * from './Priority';
10
- export * from './Section';
@@ -1 +0,0 @@
1
- export { };
@@ -1 +0,0 @@
1
- export declare type Priority = 'required' | 'important' | 'standard' | 'optional';
@@ -1,10 +0,0 @@
1
- export * from './IAddTarEntriesParams';
2
- export * from './IControlFileOptions';
3
- export * from './IDeboa';
4
- export * from './IDeboaFromFile';
5
- export * from './INormalizeOptionsLength';
6
- export * from './IWriteFileFromLinesArgs';
7
- export * from './IWriteToArchive';
8
- export * from './MaintainerScript';
9
- export * from './Priority';
10
- export * from './Section';