Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@package-json/types

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@package-json/types - npm Package Compare versions

Comparing version
0.0.12
to
0.0.13
+40
-34
dist/index.d.ts

@@ -76,11 +76,10 @@ /* eslint-disable */

);
author?: Person;
/**
* A list of people who contributed to this package.
*/
contributors?: Person[];
contributors?: Person$1[];
/**
* A list of people who maintains this package.
*/
maintainers?: Person[];
maintainers?: Person$1[];
/**

@@ -277,20 +276,2 @@ * The 'files' field is an array of files to include in your project. If you name a folder in the array, then it will also include the files inside that folder.

packageManager?: string;
engines?: {
node?: string;
[k: string]: string;
};
/**
* Defines which tools and versions are expected to be used when Volta is installed.
*/
volta?: {
/**
* The value of that entry should be a path to another JSON file which also has a "volta" section
*/
extends?: string;
/**
* This interface was referenced by `undefined`'s JSON-Schema definition
* via the `patternProperty` "(node|npm|pnpm|yarn)".
*/
[k: string]: string;
};
engineStrict?: boolean;

@@ -353,12 +334,2 @@ /**

/**
* A module ID with untranspiled code that is the primary entry point to your program.
*/
esnext?:
| string
| {
main?: string;
browser?: string;
[k: string]: string;
};
/**
* Allows packages within a directory to depend on one another using direct linking of local files. Additionally, dependencies within a workspace are hoisted to the workspace root when possible to reduce duplication. Note: It's also a good idea to set "private" to true when using this feature.

@@ -535,3 +506,3 @@ */

*/
type Person = {
type Person$1 = {
name: string;

@@ -686,2 +657,10 @@ url?: string;

type Author = null | Person | string;
interface Person {
[k: string]: unknown;
email?: string;
name: string;
url?: string;
}
/**

@@ -723,3 +702,3 @@ * Skip evaluating `U` if `T` is `unknown`.

*/
type Exports = null | XOR<XOR<TopLevelExport, Export>, `./${string}`, `./${string}`[]>;
type Exports = null | string | XOR<XOR<TopLevelExport, Export>, `./${string}`, `./${string}`[]>;
interface Export {

@@ -738,3 +717,30 @@ [k: string]: Export | string | undefined;

interface PackageJson extends JSONSchemaForNPMPackageJsonFiles {
author?: Author;
engines?: {
[k: string]: string | undefined;
node?: string;
};
/**
* A module ID with untranspiled code that is the primary entry point to your program.
*/
esnext?: string | {
[k: string]: string | undefined;
browser?: string;
main?: string;
};
exports?: Exports;
/**
* Defines which tools and versions are expected to be used when Volta is installed.
*/
volta?: {
/**
* This interface was referenced by `undefined`'s JSON-Schema definition
* via the `patternProperty` "(node|npm|pnpm|yarn)".
*/
[k: string]: string | undefined;
/**
* The value of that entry should be a path to another JSON file which also has a "volta" section
*/
extends?: string;
};
}

@@ -745,2 +751,2 @@

export { definePackageJson as default, definePackageJson as definePackageJSON, definePackageJson };
export type { Dependency, DevDependency, DevEngineDependency, FundingUrl, FundingWay, JSONSchemaForNPMPackageJsonFiles, OptionalDependency, PackageImportsEntry, PackageImportsEntryObject, PackageImportsEntryPath, PackageImportsFallback, PackageJson as PackageJSON, PackageJson, PeerDependency, PeerDependencyMeta, Person, Person1, ScriptsInstallAfter, ScriptsPublishAfter, ScriptsRestart, ScriptsStart, ScriptsStop, ScriptsTest, ScriptsUninstallBefore, ScriptsVersionBefore };
export type { Dependency, DevDependency, DevEngineDependency, FundingUrl, FundingWay, JSONSchemaForNPMPackageJsonFiles, OptionalDependency, PackageImportsEntry, PackageImportsEntryObject, PackageImportsEntryPath, PackageImportsFallback, PackageJson as PackageJSON, PackageJson, PeerDependency, PeerDependencyMeta, Person$1 as Person, Person1, ScriptsInstallAfter, ScriptsPublishAfter, ScriptsRestart, ScriptsStart, ScriptsStop, ScriptsTest, ScriptsUninstallBefore, ScriptsVersionBefore };
{
"name": "@package-json/types",
"type": "module",
"version": "0.0.12",
"version": "0.0.13",
"description": "Auto-generated package.json types.",

@@ -27,3 +27,5 @@ "author": "藍+85CD",

"build": "pkgroll",
"build:upstream": "tsx build.ts"
"build:upstream": "tsx scripts/build.ts",
"test": "vitest run",
"test:watch": "vitest watch"
},

@@ -30,0 +32,0 @@ "main": "./dist/index.js",

@@ -19,2 +19,6 @@ # @package-json/types

import type { PackageJson } from '@package-json/types'
export const packageJson: PackageJson = {
...json
}
```

@@ -21,0 +25,0 @@