-
Notifications
You must be signed in to change notification settings - Fork 0
MILAB-6382: update from boilerplate #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,3 +11,5 @@ test-dry-run.json | |
| vite.config.*.timestamp-* | ||
| .DS_Store | ||
| /.idea | ||
| software/**/*.tgz | ||
| .vscode/sftp.json | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {"version":1} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "typescript.tsdk": "node_modules/typescript/lib" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,6 @@ | ||
| import { BlockPackDescriptionAbsolute } from '@platforma-sdk/block-tools'; | ||
|
|
||
| declare function loadBlockDescription(): BlockPackDescriptionAbsolute; | ||
| declare const blockSpec: { | ||
| type: 'dev-v2'; | ||
| type: "dev-v2"; | ||
| folder: string; | ||
| }; | ||
|
|
||
| export { loadBlockDescription, blockSpec }; | ||
| export { blockSpec }; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,8 @@ | ||
| const blockTools = require('@platforma-sdk/block-tools'); | ||
|
|
||
| async function loadBlockDescription() { | ||
| return await blockTools.loadPackDescriptionFromSource(__dirname); | ||
| } | ||
|
|
||
| const blockSpec = { | ||
| type: 'dev-v2', | ||
| folder: __dirname | ||
| type: "dev-v2", | ||
| folder: __dirname, | ||
| }; | ||
|
|
||
| module.exports = { | ||
| blockSpec, | ||
| loadBlockDescription | ||
| }; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "extends": ["node_modules/@milaboratories/ts-builder/configs/oxfmt.json"], | ||
| "ignorePatterns": ["dist", "coverage", "CHANGELOG.md"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| { | ||
| "extends": ["node_modules/@milaboratories/ts-builder/dist/configs/oxlint-block-model.json"] | ||
| } |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,4 @@ | ||
| { | ||
| "extends": "@milaboratories/ts-configs/block/model", | ||
| "compilerOptions": { | ||
| "outDir": "./dist", | ||
| "rootDir": "./src" | ||
| }, | ||
| "include": ["src/**/*"], | ||
| "exclude": ["node_modules", "dist"] | ||
| "include": ["src/**/*"] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,25 +2,37 @@ | |
| "scripts": { | ||
| "build": "turbo run build", | ||
| "build:dev": "env PL_PKG_DEV=local turbo run build", | ||
| "build:dev-remote": "env PL_PKG_DEV=local PL_DOCKER_BUILD=1 PL_DOCKER_AUTOPUSH=1 turbo run build --force", | ||
| "build:dev-remote": "env PL_PKG_DEV=local PL_DOCKER_BUILD=1 PL_DOCKER_AUTOPUSH=1 turbo run build", | ||
| "lint": "turbo run lint", | ||
| "type-check": "turbo run type-check", | ||
| "test": "env PL_PKG_DEV=local turbo run test --concurrency 1 --env-mode=loose", | ||
| "test": "env PL_PKG_DEV=local turbo run test --concurrency 1", | ||
| "do-pack": "turbo run do-pack", | ||
| "watch": "turbo watch build", | ||
| "changeset": "changeset", | ||
| "version-packages": "changeset version", | ||
| "update-sdk": "block-tools update-deps" | ||
| "update-sdk": "block-tools structure refresh --update-deps-only", | ||
| "fmt": "turbo run fmt", | ||
| "check": "turbo run check", | ||
| "test:dry-run": "env PL_PKG_DEV=local turbo run test --dry-run=json", | ||
| "mark-stable": "turbo run mark-stable", | ||
| "update": "block-tools structure refresh --update-deps-only && pnpm i && block-tools structure refresh && pnpm fmt" | ||
| }, | ||
| "devDependencies": { | ||
| "@changesets/cli": "catalog:", | ||
| "@platforma-sdk/block-tools": "catalog:", | ||
| "@milaboratories/ts-builder": "catalog:", | ||
| "@platforma-sdk/block-tools": "file:/Users/pvyazankin/mictx5/core/platforma/tools/block-tools/package.tgz", | ||
| "shx": "catalog:", | ||
| "turbo": "catalog:", | ||
| "typescript": "catalog:", | ||
| "shx": "catalog:" | ||
| "typescript": "catalog:" | ||
| }, | ||
| "peerDependencies": { | ||
| "oxfmt": "*", | ||
| "oxlint": "*" | ||
| }, | ||
| "packageManager": "pnpm@9.12.0", | ||
| "//pnpm": { | ||
| "overrides": {} | ||
| "pnpm": { | ||
| "overrides": { | ||
| "@platforma-sdk/block-tools": "file:///Users/pvyazankin/mictx5/core/platforma/tools/block-tools/package.tgz" | ||
| } | ||
| } | ||
|
Comment on lines
+33
to
37
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Prompt To Fix With AIThis is a comment left during a code review.
Path: package.json
Line: 33-37
Comment:
**Developer-local file path in pnpm override**
`@platforma-sdk/block-tools` is overridden to `file:///Users/pvyazankin/mictx5/core/platforma/tools/block-tools/package.tgz` — a path that exists only on the author's machine. Any other contributor or CI runner that runs `pnpm install` will fail immediately with a resolution error because the `.tgz` file won't be present at that absolute path. The same local-path entry also appears in `pnpm-lock.yaml` (under the `overrides:` section and each importer that uses `block-tools`), so even without the `package.json` override the lockfile will force the broken resolution.
How can I resolve this? If you propose a fix, please make it concise.
Comment on lines
+33
to
37
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The "pnpm": {
"overrides": {}
} |
||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--env-mode=looseremoved from root test scriptThe previous command was
turbo run test --concurrency 1 --env-mode=loose. Turbo's default strict env-mode only passes the variables explicitly listed in each task'spassThroughEnv;looseforwarded the full environment. The workflowtesttask inturbo.jsonlistsPL_ADDRESS,PL_TEST_PASSWORD,PL_TEST_USER,PL_TEST_PROXY, andDEBUG, but any other env var that integration tests currently depend on will silently be unavailable after this change. Verify that no active test relies on variables outside that explicit list.Prompt To Fix With AI