Skip to content

Commit e0591bf

Browse files
committed
fix: upload script to cloudflare, and improved json schemas
1 parent a1165fc commit e0591bf

File tree

5 files changed

+17
-8
lines changed

5 files changed

+17
-8
lines changed

scripts/deploy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ if (!name) {
1818
console.log(`Uploading plugin ${name}, version ${version} to cloudflare!`)
1919

2020
const outputFilePath = path.resolve(path.dirname(url.fileURLToPath(import.meta.url)), '..', 'dist', 'index.js')
21-
cp.spawnSync(`source ~/.zshrc; npx wrangler r2 object put plugins/${name}/${version}/index.js --file=${outputFilePath}`, { shell: 'zsh', stdio: 'inherit' });
21+
cp.spawnSync(`source ~/.zshrc; npx wrangler r2 object put plugins/${name}/${version}/index.js --file=${outputFilePath} --remote`, { shell: 'zsh', stdio: 'inherit' });
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"$id": "https://www.codifycli.com/wait-github-ssh-key.json",
4+
"title": "Wait github ssh key",
5+
"description": "Allow users to add their ssh-keys to github.",
6+
"type": "object",
7+
"properties": {},
8+
"additionalProperties": false
9+
}

src/resources/node/pnpm/pnpm-global-env-stateful-parameter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ParameterSetting, Plan, StatefulParameter, getPty } from 'codify-plugin-lib';
1+
import { ParameterSetting, StatefulParameter, getPty } from 'codify-plugin-lib';
22
import fs from 'node:fs/promises';
33

44
import { codifySpawn } from '../../../utils/codify-spawn.js';

src/resources/python/virtualenv/virtualenv-project-schema.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@
1515
},
1616
"noVcsIgnore": {
1717
"type": "boolean",
18-
"description": "Don't create VCS ignore directive in the destination directory (default: False)"
18+
"description": "Don't create VCS ignore directive in the destination directory (default: false)"
1919
},
2020
"systemSitePackages": {
2121
"type": "boolean",
22-
"description": "Give the virtual environment access to the system site-packages dir (default: False)"
22+
"description": "Give the virtual environment access to the system site-packages dir (default: false)"
2323
},
2424
"symlinks": {
2525
"type": "boolean",
26-
"description": " Try to use symlinks rather than copies (default: True)"
26+
"description": " Try to use symlinks rather than copies (default: true)"
2727
},
2828
"cwd": {
2929
"type": "string",
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ import * as fs from 'node:fs/promises';
55
import * as os from 'node:os';
66
import { execSync } from 'child_process';
77

8-
describe('Git clone integration tests', async () => {
8+
describe('Git repository integration tests', async () => {
99
const pluginPath = path.resolve('./src/index.ts');
1010

1111
it('Can install git repo to parent dir', { timeout: 300000 }, async () => {
1212
await PluginTester.fullTest(pluginPath, [
1313
{
14-
type: 'git-clone',
14+
type: 'git-repository',
1515
parentDirectory: '~/projects/test',
1616
repository: 'https://github.com/kevinwang5658/untitled.git'
1717
}
@@ -34,7 +34,7 @@ describe('Git clone integration tests', async () => {
3434
it('Can install git repo to specified dir', { timeout: 300000 }, async () => {
3535
await PluginTester.fullTest(pluginPath, [
3636
{
37-
type: 'git-clone',
37+
type: 'git-repository',
3838
directory: '~/projects/nested/codify-plugin',
3939
repository: 'https://github.com/kevinwang5658/untitled.git'
4040
}

0 commit comments

Comments
 (0)