@schemastore/compile-commands 0.0.1 → 0.0.3

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) Florian Keller. All rights reserved.
3
+ Copyright (c) Florian Imdahl. All rights reserved.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -5,8 +5,8 @@
5
5
  This package contains type definitions for compile-commands.
6
6
 
7
7
  ## Details
8
- Files were exported from https://github.com/ffflorian/schemastore-updater/tree/master/schemas/compile-commands.
8
+ Files were exported from https://github.com/ffflorian/schemastore-updater/tree/main/schemas/compile-commands.
9
9
 
10
10
  ## Additional Details
11
- * Last updated: Mon, Feb 24, 2020, 11:37:51 GMT
11
+ * Last updated: Fri, Feb 24, 2023, 11:23:31 GMT
12
12
  * Dependencies: none
package/index.d.ts CHANGED
@@ -1,35 +1,41 @@
1
- /* tslint:disable */
1
+ /* eslint-disable */
2
2
  /**
3
3
  * This file was automatically generated by json-schema-to-typescript.
4
4
  * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
5
5
  * and run json-schema-to-typescript to regenerate this file.
6
6
  */
7
7
 
8
- /**
9
- * Describes a format for specifying how to replay single compilations independently of the build system
10
- */
11
- export type LLVMCompilationDatabase = CommandObject[];
12
-
13
- export interface CommandObject {
8
+ export type CommandObject = CommandObject1 & {
14
9
  /**
15
- * The working directory of the compilation
10
+ * The working directory of the compilation. All paths specified in the command or file fields must be either absolute or relative to this directory.
16
11
  */
17
12
  directory?: string;
18
13
  /**
19
- * The main translation unit source processed by this compilation step
14
+ * The main translation unit source processed by this compilation step. This is used by tools as the key into the compilation database. There can be multiple command objects for the same file, for example if the same source file is compiled with different configurations.
20
15
  */
21
16
  file?: string;
22
17
  /**
23
- * The compile command executed
18
+ * The compile command executed. After JSON unescaping, this must be a valid command to rerun the exact compilation step for the translation unit in the environment the build system uses. Parameters use shell quoting and shell escaping of quotes, with '"' and '\' being the only special characters. Shell expansion is not supported.
24
19
  */
25
20
  command?: string;
26
21
  /**
27
- * The compile command executed as list of strings
22
+ * The compile command executed as list of strings.
28
23
  */
29
- arguments?: string;
24
+ arguments?: string[];
30
25
  /**
31
- * The name of the output created by this compilation step
26
+ * The name of the output created by this compilation step. This field is optional. It can be used to distinguish different processing modes of the same input file.
32
27
  */
33
28
  output?: string;
34
- [k: string]: any;
35
- }
29
+ [k: string]: unknown;
30
+ };
31
+ export type CommandObject1 =
32
+ | {
33
+ [k: string]: unknown;
34
+ }
35
+ | {
36
+ [k: string]: unknown;
37
+ };
38
+ /**
39
+ * Describes a format for specifying how to replay single compilations independently of the build system
40
+ */
41
+ export type LLVMCompilationDatabase = CommandObject[];
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
- "author": "Florian Keller <github@floriankeller.de>",
2
+ "author": "Florian Imdahl <git@ffflorian.de>",
3
3
  "dependencies": {},
4
4
  "description": "TypeScript definitions for compile-commands.",
5
5
  "license": "MIT",
6
6
  "main": "index.d.ts",
7
7
  "name": "@schemastore/compile-commands",
8
- "repository": "https://github.com/ffflorian/schemastore-updater/tree/master/schemas/compile-commands",
8
+ "repository": "https://github.com/ffflorian/schemastore-updater/tree/main/schemas/compile-commands",
9
9
  "scripts": {},
10
- "typesPublisherContentHash": "9a81285732f1032ab51103eea22d24f14ba2717abf2fc7c7eb942df755cecfce",
10
+ "typesPublisherContentHash": "446ca7bc4b0cd39ae33693b3f6465d07316da09f5eb11ca8ae644bbe50da179b",
11
11
  "types": "index.d.ts",
12
- "version": "0.0.1",
12
+ "version": "0.0.3",
13
13
  "typeScriptVersion": "2.2"
14
14
  }