@saltcorn/cli 1.1.0-beta.0 → 1.1.0-beta.8

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.0-beta.0",
2
+ "version": "1.1.0-beta.8",
3
3
  "commands": {
4
4
  "add-schema": {
5
5
  "id": "add-schema",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@saltcorn/cli",
3
3
  "description": "Command-line interface for Saltcorn, open-source no-code platform",
4
4
  "homepage": "https://saltcorn.com",
5
- "version": "1.1.0-beta.0",
5
+ "version": "1.1.0-beta.8",
6
6
  "author": "Tom Nielsen @glutamate",
7
7
  "bin": {
8
8
  "saltcorn": "./bin/saltcorn"
@@ -11,13 +11,13 @@
11
11
  "dependencies": {
12
12
  "@oclif/core": "^2.16.0",
13
13
  "@oclif/plugin-plugins": "^3.9.4",
14
- "@saltcorn/admin-models": "1.1.0-beta.0",
15
- "@saltcorn/common-code": "1.1.0-beta.0",
16
- "@saltcorn/data": "1.1.0-beta.0",
17
- "@saltcorn/mobile-app": "1.1.0-beta.0",
18
- "@saltcorn/mobile-builder": "1.1.0-beta.0",
19
- "@saltcorn/plugins-loader": "1.1.0-beta.0",
20
- "@saltcorn/server": "1.1.0-beta.0",
14
+ "@saltcorn/admin-models": "1.1.0-beta.8",
15
+ "@saltcorn/common-code": "1.1.0-beta.8",
16
+ "@saltcorn/data": "1.1.0-beta.8",
17
+ "@saltcorn/mobile-app": "1.1.0-beta.8",
18
+ "@saltcorn/mobile-builder": "1.1.0-beta.8",
19
+ "@saltcorn/plugins-loader": "1.1.0-beta.8",
20
+ "@saltcorn/server": "1.1.0-beta.8",
21
21
  "contractis": "^0.1.0",
22
22
  "dateformat": "^3.0.3",
23
23
  "inquirer": "^7.3.3",
@@ -57,9 +57,8 @@
57
57
  "repository": "github:saltcorn/saltcorn",
58
58
  "scripts": {
59
59
  "postpack": "rm -f oclif.manifest.json",
60
- "prepack": "oclif manifest && oclif readme",
60
+ "manifest": "oclif manifest && oclif readme",
61
61
  "test": "echo NO TESTS",
62
- "version": "oclif readme && git add README.md",
63
62
  "tsc": "echo \"Error: no TypeScript support yet\"",
64
63
  "clean": "echo \"Error: no TypeScript support yet\""
65
64
  },
@@ -102,6 +102,11 @@ class ReleaseCommand extends Command {
102
102
  const tags = !tags0 ? [] : Array.isArray(tags0) ? tags0 : [tags0];
103
103
  if (flags.tag) tags.push(flags.tag);
104
104
  const firstTag = tags[0];
105
+ console.log(
106
+ `packages/${dir}$ npm publish --access=public ${
107
+ firstTag ? `--tag ${firstTag}` : ""
108
+ }`
109
+ );
105
110
  spawnSync(
106
111
  "npm",
107
112
  [
@@ -117,6 +122,9 @@ class ReleaseCommand extends Command {
117
122
  tags.shift();
118
123
  for (const tag of tags) {
119
124
  await sleep(3000);
125
+ console.log(
126
+ `packages/${dir}$ npm dist-tag add @saltcorn/cli@${version} ${tag}`
127
+ );
120
128
  spawnSync("npm", ["dist-tag", "add", `@saltcorn/cli@${version}`, tag], {
121
129
  stdio: "inherit",
122
130
  cwd: `packages/${dir}/`,
@@ -153,17 +161,29 @@ class ReleaseCommand extends Command {
153
161
  fs.writeFileSync(
154
162
  `package.json`,
155
163
  JSON.stringify({ ...rootPackageJson, workspaces: undefined }, null, 2)
156
- );
164
+ );
157
165
  spawnSync("npm", ["update", "--legacy-peer-deps"], {
158
166
  stdio: "inherit",
159
167
  cwd: `packages/saltcorn-cli/`,
160
168
  });
169
+ spawnSync("npm", ["install", "--legacy-peer-deps"], {
170
+ stdio: "inherit",
171
+ cwd: `packages/saltcorn-cli/`,
172
+ });
173
+ spawnSync("npm", ["run", "manifest"], {
174
+ stdio: "inherit",
175
+ cwd: `packages/saltcorn-cli/`,
176
+ });
177
+ spawnSync("npm", ["install", "--legacy-peer-deps"], {
178
+ stdio: "inherit",
179
+ cwd: ".",
180
+ });
161
181
  // do not run 'audit fix' on full point releases, only on -beta.x, -rc.x etc
162
- if (version.includes("-"))
182
+ /*if (version.includes("-"))
163
183
  spawnSync("npm", ["audit", "fix"], {
164
184
  stdio: "inherit",
165
185
  cwd: `packages/saltcorn-cli/`,
166
- });
186
+ });*/
167
187
  await publish("saltcorn-cli", "next");
168
188
  fs.writeFileSync(`package.json`, JSON.stringify(rootPackageJson, null, 2));
169
189
  // update Dockerfile