npm-pkgbuild 11.10.6 → 11.10.8

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,6 +1,6 @@
1
1
  {
2
2
  "name": "npm-pkgbuild",
3
- "version": "11.10.6",
3
+ "version": "11.10.8",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -62,10 +62,10 @@
62
62
  "pacote": "^15.2.0",
63
63
  "pkg-dir": "^7.0.0",
64
64
  "tar-stream": "^3.1.6",
65
- "uti": "^7.4.1"
65
+ "uti": "^7.5.0"
66
66
  },
67
67
  "devDependencies": {
68
- "@types/node": "^20.4.4",
68
+ "@types/node": "^20.4.8",
69
69
  "ava": "^5.3.1",
70
70
  "c8": "^8.0.1",
71
71
  "documentation": "^14.0.2",
@@ -3,11 +3,10 @@
3
3
  import { readFileSync } from "node:fs";
4
4
  import { fileURLToPath } from "node:url";
5
5
  import { program } from "commander";
6
- import {
7
- createExpressionTransformer
8
- } from "content-entry-transform";
6
+ import { createExpressionTransformer } from "content-entry-transform";
9
7
  import { UTIController } from "uti";
10
8
  import { utf8StreamOptions } from "./util.mjs";
9
+ import additionalUTIs from "./utis.mjs";
11
10
  import {
12
11
  FileContentProvider,
13
12
  allInputs,
@@ -58,6 +57,7 @@ program
58
57
  .action(async options => {
59
58
  try {
60
59
  const uc = new UTIController();
60
+ uc.register(additionalUTIs);
61
61
 
62
62
  options.publish = preparePublish(options.publish, process.env);
63
63
 
@@ -118,7 +118,7 @@ program
118
118
  const o = new outputFactory(properties);
119
119
  const transformer = [
120
120
  createExpressionTransformer(
121
- (entry) => uc.fileNameConformsTo(entry.name, "public.text"),
121
+ entry => uc.fileNameConformsTo(entry.name, "public.text"),
122
122
  properties
123
123
  )
124
124
  ];
package/src/utis.mjs ADDED
@@ -0,0 +1,7 @@
1
+ export default [
2
+ {
3
+ name: "de.mfelten.backup",
4
+ conformsTo: "public.shell-script",
5
+ fileNameExtension: ".backup"
6
+ }
7
+ ];