@pnpm/plugin-trusted-deps 0.3.0-0 → 0.3.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 (2) hide show
  1. package/index.mjs +6 -0
  2. package/package.json +13 -4
package/index.mjs ADDED
@@ -0,0 +1,6 @@
1
+ import { createRequire } from 'node:module'
2
+
3
+ const require = createRequire(import.meta.url)
4
+
5
+ export const TRUSTED_PACKAGE_NAMES = require('./allow.json')
6
+ export const DEFAULT_ALLOW_BUILDS = require('./allowBuilds.json')
package/package.json CHANGED
@@ -1,10 +1,20 @@
1
1
  {
2
2
  "name": "@pnpm/plugin-trusted-deps",
3
- "version": "0.3.0-0",
3
+ "version": "0.3.0-1",
4
4
  "description": "A list of OSS packages that are known to require lifecycle scripts to function properly",
5
5
  "main": "index.js",
6
+ "exports": {
7
+ ".": {
8
+ "import": "./index.mjs",
9
+ "require": "./index.js"
10
+ },
11
+ "./allowBuilds.json": "./allowBuilds.json",
12
+ "./allow.json": "./allow.json",
13
+ "./pnpmfile.cjs": "./pnpmfile.cjs"
14
+ },
6
15
  "files": [
7
16
  "index.js",
17
+ "index.mjs",
8
18
  "allow.json",
9
19
  "allowBuilds.json",
10
20
  "untrusted.js",
@@ -24,7 +34,6 @@
24
34
  "devDependencies": {
25
35
  "eslint": "^9.39.2",
26
36
  "neostandard": "^0.12.2",
27
- "ts-node": "^10.9.2",
28
37
  "node": "runtime:24"
29
38
  },
30
39
  "funding": "https://opencollective.com/pnpm",
@@ -38,7 +47,7 @@
38
47
  },
39
48
  "scripts": {
40
49
  "lint": "eslint .",
41
- "test": "node test.js",
42
- "update-list": "ts-node updateList.ts"
50
+ "test": "node updateList.mjs && node test.js && node test-esm.mjs",
51
+ "update-list": "node updateList.mjs"
43
52
  }
44
53
  }