@dpuse/dpuse-development 0.3.815 → 0.3.817
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/README.md +22 -21
- package/dist/dpuse-development.es.js +487 -314
- package/dist/dpuse-development.es.js.map +1 -1
- package/dist/types/src/actions/triggerGitHubRelease.d.ts +2 -0
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/utilities/rustCrates.d.ts +29 -0
- package/package.json +5 -3
|
@@ -8,4 +8,5 @@ export { publishProject } from './actions/publishProject';
|
|
|
8
8
|
export { releaseProject } from './actions/releaseProject';
|
|
9
9
|
export { syncProjectWithGitHub } from './actions/syncProjectWithGitHub';
|
|
10
10
|
export { testProject } from './actions/testProject';
|
|
11
|
+
export { triggerGitHubRelease } from './actions/triggerGitHubRelease';
|
|
11
12
|
export { uploadDirectoryToR2 } from './utilities/cloudflare';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/** A crate compiled into the project's WebAssembly, with where to find its licence and its release history. */
|
|
2
|
+
export interface RustCrate {
|
|
3
|
+
name: string;
|
|
4
|
+
version: string;
|
|
5
|
+
licenseExpression: string;
|
|
6
|
+
repository: string;
|
|
7
|
+
licenseFiles: {
|
|
8
|
+
label: string;
|
|
9
|
+
path: string;
|
|
10
|
+
}[];
|
|
11
|
+
publishedDate: string;
|
|
12
|
+
latestVersion: string;
|
|
13
|
+
latestPublishedDate: string;
|
|
14
|
+
}
|
|
15
|
+
/** One line of Cargo's dependency tree. The project's own crates are in it too, so the tree reads from them down. */
|
|
16
|
+
export interface RustCrateTreeItem {
|
|
17
|
+
name: string;
|
|
18
|
+
version: string;
|
|
19
|
+
depth: number;
|
|
20
|
+
isOwn: boolean;
|
|
21
|
+
}
|
|
22
|
+
/** Lists the crates compiled into the project's WebAssembly, checks each licence against those allowed, and copies
|
|
23
|
+
* each licence file to 'licenses/downloads'. Returns null for a project with no Rust code. Only normal dependencies
|
|
24
|
+
* built for WebAssembly are followed: development and build dependencies, and macros (which run only while compiling),
|
|
25
|
+
* put none of their code in the output. */
|
|
26
|
+
export declare function documentRustCrates(stepLabel: string, allowedLicenses: string): Promise<{
|
|
27
|
+
crates: RustCrate[];
|
|
28
|
+
treeItems: RustCrateTreeItem[];
|
|
29
|
+
} | null>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dpuse/dpuse-development",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.817",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Actions for managing DPUse projects.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"document": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.documentProject(''))\"",
|
|
80
80
|
"format": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.formatCode())\"",
|
|
81
81
|
"lint": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.lintCode())\"",
|
|
82
|
-
"release": "npm run build && npm run document && npm run sync &&
|
|
82
|
+
"release": "npm run build && npm run document && npm run sync && node -e \"import('./dist/dpuse-development.es.js').then(m => m.triggerGitHubRelease())\"",
|
|
83
83
|
"sync": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.syncProjectWithGitHub())\"",
|
|
84
84
|
"test": "node -e \"import('./dist/dpuse-development.es.js').then(m => m.testProject())\""
|
|
85
85
|
},
|
|
@@ -92,14 +92,16 @@
|
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"@dpuse/dpuse-shared": "^0.3.
|
|
95
|
+
"@dpuse/dpuse-shared": "^0.3.869",
|
|
96
96
|
"license-checker-rseidelsohn": "^5.0.1",
|
|
97
97
|
"npm-check-updates": "^23.1.0",
|
|
98
|
+
"spdx-satisfies": "^6.0.0",
|
|
98
99
|
"valibot": "^1.5.0"
|
|
99
100
|
},
|
|
100
101
|
"devDependencies": {
|
|
101
102
|
"@dpuse/eslint-config-dpuse": "^1.0.124",
|
|
102
103
|
"@types/node": "^26.6.4",
|
|
104
|
+
"@types/spdx-satisfies": "^6.0.0",
|
|
103
105
|
"@vitest/coverage-v8": "^5.0.3",
|
|
104
106
|
"eslint": "^10.11.0",
|
|
105
107
|
"fallow": "^3.31.0",
|