ic-mops 0.1.10 → 0.1.11
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/commands/publish.js
CHANGED
|
@@ -57,6 +57,7 @@ export async function publish() {
|
|
|
57
57
|
'repository',
|
|
58
58
|
'documentation',
|
|
59
59
|
'homepage',
|
|
60
|
+
'baseDir',
|
|
60
61
|
'readme',
|
|
61
62
|
'license',
|
|
62
63
|
'files',
|
|
@@ -86,6 +87,7 @@ export async function publish() {
|
|
|
86
87
|
dfx: 10,
|
|
87
88
|
moc: 10,
|
|
88
89
|
donation: 64,
|
|
90
|
+
root: 50,
|
|
89
91
|
};
|
|
90
92
|
|
|
91
93
|
for (let [key, max] of Object.entries(keysMax)) {
|
|
@@ -127,6 +129,7 @@ export async function publish() {
|
|
|
127
129
|
repository: config.package.repository || '',
|
|
128
130
|
homepage: config.package.homepage || '',
|
|
129
131
|
documentation: config.package.documentation || '',
|
|
132
|
+
baseDir: 'src',
|
|
130
133
|
readme: 'README.md',
|
|
131
134
|
license: config.package.license || '',
|
|
132
135
|
owner: getIdentity()?.getPrincipal() || Principal.anonymous(),
|
|
@@ -136,6 +139,7 @@ export async function publish() {
|
|
|
136
139
|
dependencies: (Object.entries(config.dependencies || {})).map(([name, version]) => {
|
|
137
140
|
return {name, version};
|
|
138
141
|
}),
|
|
142
|
+
devDependencies: [],
|
|
139
143
|
scripts: [],
|
|
140
144
|
};
|
|
141
145
|
|
package/commands/sources.js
CHANGED
|
@@ -96,7 +96,7 @@ export async function sources({verbose} = {}) {
|
|
|
96
96
|
|
|
97
97
|
// sources
|
|
98
98
|
for (let [name, ver] of Object.entries(packages)) {
|
|
99
|
-
let pkgDir = path.relative(process.cwd(), path.join(root, `.mops/${name}@${ver}`));
|
|
99
|
+
let pkgDir = path.relative(process.cwd(), path.join(root, `.mops/${name}@${ver}/src`));
|
|
100
100
|
console.log(`--package ${name} ${pkgDir}`);
|
|
101
101
|
|
|
102
102
|
// fallback base to base-unofficial
|
|
@@ -63,8 +63,10 @@ type PackageDetails =
|
|
|
63
63
|
};
|
|
64
64
|
type PackageConfig__1 =
|
|
65
65
|
record {
|
|
66
|
+
baseDir: text;
|
|
66
67
|
dependencies: vec Dependency;
|
|
67
68
|
description: text;
|
|
69
|
+
devDependencies: vec Dependency;
|
|
68
70
|
dfx: text;
|
|
69
71
|
documentation: text;
|
|
70
72
|
donation: text;
|
|
@@ -80,8 +82,10 @@ type PackageConfig__1 =
|
|
|
80
82
|
};
|
|
81
83
|
type PackageConfig =
|
|
82
84
|
record {
|
|
85
|
+
baseDir: text;
|
|
83
86
|
dependencies: vec Dependency;
|
|
84
87
|
description: text;
|
|
88
|
+
devDependencies: vec Dependency;
|
|
85
89
|
dfx: text;
|
|
86
90
|
documentation: text;
|
|
87
91
|
donation: text;
|
|
@@ -8,6 +8,7 @@ export interface PackageConfig {
|
|
|
8
8
|
'dfx' : string,
|
|
9
9
|
'moc' : string,
|
|
10
10
|
'scripts' : Array<Script>,
|
|
11
|
+
'baseDir' : string,
|
|
11
12
|
'documentation' : string,
|
|
12
13
|
'name' : PackageName,
|
|
13
14
|
'homepage' : string,
|
|
@@ -15,6 +16,7 @@ export interface PackageConfig {
|
|
|
15
16
|
'version' : string,
|
|
16
17
|
'keywords' : Array<string>,
|
|
17
18
|
'donation' : string,
|
|
19
|
+
'devDependencies' : Array<Dependency>,
|
|
18
20
|
'repository' : string,
|
|
19
21
|
'dependencies' : Array<Dependency>,
|
|
20
22
|
'license' : string,
|
|
@@ -24,6 +26,7 @@ export interface PackageConfig__1 {
|
|
|
24
26
|
'dfx' : string,
|
|
25
27
|
'moc' : string,
|
|
26
28
|
'scripts' : Array<Script>,
|
|
29
|
+
'baseDir' : string,
|
|
27
30
|
'documentation' : string,
|
|
28
31
|
'name' : PackageName,
|
|
29
32
|
'homepage' : string,
|
|
@@ -31,6 +34,7 @@ export interface PackageConfig__1 {
|
|
|
31
34
|
'version' : string,
|
|
32
35
|
'keywords' : Array<string>,
|
|
33
36
|
'donation' : string,
|
|
37
|
+
'devDependencies' : Array<Dependency>,
|
|
34
38
|
'repository' : string,
|
|
35
39
|
'dependencies' : Array<Dependency>,
|
|
36
40
|
'license' : string,
|
|
@@ -15,6 +15,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
15
15
|
'dfx' : IDL.Text,
|
|
16
16
|
'moc' : IDL.Text,
|
|
17
17
|
'scripts' : IDL.Vec(Script),
|
|
18
|
+
'baseDir' : IDL.Text,
|
|
18
19
|
'documentation' : IDL.Text,
|
|
19
20
|
'name' : PackageName,
|
|
20
21
|
'homepage' : IDL.Text,
|
|
@@ -22,6 +23,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
22
23
|
'version' : IDL.Text,
|
|
23
24
|
'keywords' : IDL.Vec(IDL.Text),
|
|
24
25
|
'donation' : IDL.Text,
|
|
26
|
+
'devDependencies' : IDL.Vec(Dependency),
|
|
25
27
|
'repository' : IDL.Text,
|
|
26
28
|
'dependencies' : IDL.Vec(Dependency),
|
|
27
29
|
'license' : IDL.Text,
|
|
@@ -52,6 +54,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
52
54
|
'dfx' : IDL.Text,
|
|
53
55
|
'moc' : IDL.Text,
|
|
54
56
|
'scripts' : IDL.Vec(Script),
|
|
57
|
+
'baseDir' : IDL.Text,
|
|
55
58
|
'documentation' : IDL.Text,
|
|
56
59
|
'name' : PackageName,
|
|
57
60
|
'homepage' : IDL.Text,
|
|
@@ -59,6 +62,7 @@ export const idlFactory = ({ IDL }) => {
|
|
|
59
62
|
'version' : IDL.Text,
|
|
60
63
|
'keywords' : IDL.Vec(IDL.Text),
|
|
61
64
|
'donation' : IDL.Text,
|
|
65
|
+
'devDependencies' : IDL.Vec(Dependency),
|
|
62
66
|
'repository' : IDL.Text,
|
|
63
67
|
'dependencies' : IDL.Vec(Dependency),
|
|
64
68
|
'license' : IDL.Text,
|