@signageos/lib-ci 17.0.0-master.3227
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/dist/bin.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@signageos/lib-ci",
|
|
3
|
+
"version": "17.0.0-master.3227",
|
|
4
|
+
"main": "dist/bin.js",
|
|
5
|
+
"author": "",
|
|
6
|
+
"license": "ISC",
|
|
7
|
+
"description": "",
|
|
8
|
+
"type": "commonjs",
|
|
9
|
+
"bin": {
|
|
10
|
+
"lib-ci": "./dist/bin.js"
|
|
11
|
+
},
|
|
12
|
+
"scripts": {
|
|
13
|
+
"clean-build": "npm run build",
|
|
14
|
+
"build": "node build.mjs",
|
|
15
|
+
"test": "NODE_ENV=test mocha",
|
|
16
|
+
"test:coverage": "c8 npm run test",
|
|
17
|
+
"check": "npm run depcheck && ../../tools/check-deps",
|
|
18
|
+
"check:forbidden-dependencies": "node ../../tools/check-forbidden-dependencies",
|
|
19
|
+
"depcheck": "depcheck --config .depcheckrc.json"
|
|
20
|
+
},
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@signageos/codestyle": "0.3.0",
|
|
23
|
+
"@types/node": "20.14.9",
|
|
24
|
+
"depcheck": "1.4.7",
|
|
25
|
+
"esbuild": "0.23.0",
|
|
26
|
+
"mocha": "10.5.2",
|
|
27
|
+
"prettier": "3.3.2",
|
|
28
|
+
"should": "13.2.3",
|
|
29
|
+
"ts-node": "10.9.2",
|
|
30
|
+
"zx": "8.1.4"
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"tools",
|
|
34
|
+
"package.json"
|
|
35
|
+
],
|
|
36
|
+
"dependencies": {},
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"registry": "https://registry.npmjs.org/",
|
|
39
|
+
"access": "public"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import ts from 'typescript';
|
|
2
|
+
|
|
3
|
+
/** @param {ts.EmitResult} result */
|
|
4
|
+
export const printTypescriptOutput = (result) => {
|
|
5
|
+
console.log('Build finished');
|
|
6
|
+
console.log(
|
|
7
|
+
ts.formatDiagnostics(result.diagnostics, {
|
|
8
|
+
getCanonicalFileName: (f) => f,
|
|
9
|
+
getCurrentDirectory: () => process.cwd(),
|
|
10
|
+
getNewLine: () => '\n',
|
|
11
|
+
}),
|
|
12
|
+
);
|
|
13
|
+
};
|