@junobuild/cli-tools 0.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.
- package/LICENSE +21 -0
- package/README.md +17 -0
- package/dist/node/index.mjs +1997 -0
- package/dist/node/index.mjs.map +7 -0
- package/dist/types/configs/juno.config.d.ts +15 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/types/config.d.ts +2 -0
- package/dist/types/utils/node.utils.d.ts +6 -0
- package/package.json +64 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { JunoConfig, JunoConfigFnOrObject, JunoDevConfig, JunoDevConfigFnOrObject } from '@junobuild/config';
|
|
2
|
+
import type { ConfigFilename, ConfigType } from '../types/config';
|
|
3
|
+
export declare const junoConfigExist: (params: {
|
|
4
|
+
filename: ConfigFilename;
|
|
5
|
+
}) => Promise<boolean>;
|
|
6
|
+
export declare const junoConfigFile: ({ filename }: {
|
|
7
|
+
filename: ConfigFilename;
|
|
8
|
+
}) => {
|
|
9
|
+
configPath: string;
|
|
10
|
+
configType: ConfigType;
|
|
11
|
+
};
|
|
12
|
+
export declare const readJunoConfig: <ConfigFnOrObject extends JunoConfigFnOrObject | JunoDevConfigFnOrObject, Config extends JunoConfig | JunoDevConfig>({ config, ...rest }: {
|
|
13
|
+
filename: ConfigFilename;
|
|
14
|
+
config: (userConfig: ConfigFnOrObject) => Config;
|
|
15
|
+
}) => Promise<Config>;
|
package/package.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@junobuild/cli-tools",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "A collection of tools for Juno CLIs and Plugins.",
|
|
5
|
+
"author": "David Dal Busco (https://daviddalbusco.com)",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "./dist/node/index.mjs",
|
|
9
|
+
"module": "./dist/node/index.mjs",
|
|
10
|
+
"types": "./dist/types/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": {
|
|
14
|
+
"types": "./dist/types/index.d.ts",
|
|
15
|
+
"default": "./dist/node/index.mjs"
|
|
16
|
+
},
|
|
17
|
+
"require": {
|
|
18
|
+
"types": "./dist/types/index.d.ts",
|
|
19
|
+
"default": "./dist/node/index.mjs"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist",
|
|
25
|
+
"README.md",
|
|
26
|
+
"LICENSE"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"rmdir": "node ../../scripts/rmdir.mjs",
|
|
30
|
+
"ts-declaration": "tsc --emitDeclarationOnly --outDir dist/types",
|
|
31
|
+
"build": "npm run rmdir && mkdir -p dist && node esbuild.mjs && npm run ts-declaration",
|
|
32
|
+
"prepack": "npm run build"
|
|
33
|
+
},
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "git+https://github.com/junobuild/juno-js.git",
|
|
37
|
+
"directory": "packages/cli-tools"
|
|
38
|
+
},
|
|
39
|
+
"bugs": {
|
|
40
|
+
"url": "https://github.com/junobuild/juno-js"
|
|
41
|
+
},
|
|
42
|
+
"keywords": [
|
|
43
|
+
"blockchain-as-a-service",
|
|
44
|
+
"baas",
|
|
45
|
+
"dapps",
|
|
46
|
+
"dapps-development",
|
|
47
|
+
"internet computer",
|
|
48
|
+
"smart-contracts",
|
|
49
|
+
"web3",
|
|
50
|
+
"utilities",
|
|
51
|
+
"utils",
|
|
52
|
+
"cli"
|
|
53
|
+
],
|
|
54
|
+
"homepage": "https://juno.build",
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"@junobuild/config": "^0.0.2",
|
|
57
|
+
"@junobuild/utils": "^0.0.19"
|
|
58
|
+
},
|
|
59
|
+
"dependencies": {
|
|
60
|
+
"@babel/core": "^7.23.9",
|
|
61
|
+
"@babel/plugin-transform-modules-commonjs": "^7.23.3",
|
|
62
|
+
"@babel/preset-typescript": "^7.23.3"
|
|
63
|
+
}
|
|
64
|
+
}
|