create-near-app 5.3.1-beta.2 → 5.3.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/dist/package-json.js
CHANGED
|
@@ -39,15 +39,16 @@ const buildScript = (hasFrontend) => hasFrontend ? {
|
|
|
39
39
|
} : {
|
|
40
40
|
'build': 'npm run build:contract',
|
|
41
41
|
};
|
|
42
|
+
const buildContractScriptName = 'build:contract';
|
|
42
43
|
const buildContractScript = (contract) => {
|
|
43
44
|
switch (contract) {
|
|
44
45
|
case 'js':
|
|
45
46
|
return {
|
|
46
|
-
|
|
47
|
+
[buildContractScriptName]: 'cd contract && npm run build',
|
|
47
48
|
};
|
|
48
49
|
case 'rust':
|
|
49
50
|
return {
|
|
50
|
-
|
|
51
|
+
[buildContractScriptName]: 'cd contract && ./build.sh',
|
|
51
52
|
};
|
|
52
53
|
}
|
|
53
54
|
};
|
|
@@ -91,7 +92,7 @@ const integrationTestScripts = (contract, tests) => {
|
|
|
91
92
|
break;
|
|
92
93
|
}
|
|
93
94
|
return {
|
|
94
|
-
'test:integration': `cd integration-tests && ${run_test}`,
|
|
95
|
+
'test:integration': `npm run ${buildContractScriptName} && cd integration-tests && ${run_test}`,
|
|
95
96
|
};
|
|
96
97
|
};
|
|
97
98
|
const npmInstallScript = (contract, hasFrontend, tests) => {
|
package/package.json
CHANGED