[chore] update lazyrepo (#1211)
This commit is contained in:
parent
5ab93eef5f
commit
f5c5b05dc7
28 changed files with 149 additions and 146 deletions
|
@ -13,4 +13,5 @@
|
||||||
**/*.test.ts
|
**/*.test.ts
|
||||||
**/api/*
|
**/api/*
|
||||||
!**/pages/api/*
|
!**/pages/api/*
|
||||||
**/*.json
|
**/*.json
|
||||||
|
**/lazy.config.ts
|
8
.github/workflows/checks.yml
vendored
8
.github/workflows/checks.yml
vendored
|
@ -36,7 +36,7 @@ jobs:
|
||||||
run: yarn
|
run: yarn
|
||||||
|
|
||||||
- name: Typecheck
|
- name: Typecheck
|
||||||
run: yarn build:types
|
run: yarn build-types
|
||||||
|
|
||||||
- name: Check scripts
|
- name: Check scripts
|
||||||
run: yarn check-scripts
|
run: yarn check-scripts
|
||||||
|
@ -45,15 +45,15 @@ jobs:
|
||||||
run: yarn lint
|
run: yarn lint
|
||||||
|
|
||||||
- name: Check API declarations and docs work as intended
|
- name: Check API declarations and docs work as intended
|
||||||
run: yarn api:check
|
run: yarn api-check
|
||||||
|
|
||||||
- name: Pack public packages
|
- name: Pack public packages
|
||||||
run: yarn lazy pack-tarball
|
run: "yarn lazy pack-tarball | sed -E 's/^.*? ::/::/'"
|
||||||
|
|
||||||
- name: Build all projects
|
- name: Build all projects
|
||||||
# the sed pipe makes sure that github annotations come through without
|
# the sed pipe makes sure that github annotations come through without
|
||||||
# turbo's prefix
|
# turbo's prefix
|
||||||
run: "yarn build | sed -E 's/^@[a-zA-Z-]+\\/[a-z-]+:[a-z-]+: ::/::/'"
|
run: "yarn build | sed -E 's/^.*? ::/::/'"
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: yarn test
|
run: yarn test
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
. "$(dirname -- "$0")/_/husky.sh"
|
. "$(dirname -- "$0")/_/husky.sh"
|
||||||
|
|
||||||
yarn lazy run build:api
|
yarn lazy run build-api
|
||||||
git add packages/*/api-report.md
|
git add packages/*/api-report.md
|
||||||
yarn lint-staged
|
yarn lint-staged
|
||||||
|
|
|
@ -27,14 +27,14 @@
|
||||||
"infinite"
|
"infinite"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "lazy dev:docs",
|
"dev": "lazy dev-docs",
|
||||||
"dev:docs": "next dev",
|
"dev-docs": "next dev",
|
||||||
"build": "lazy build:docs",
|
"build": "lazy build-docs",
|
||||||
"build:docs": "next build",
|
"build-docs": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"lint": "yarn run -T tsx ../../scripts/lint.ts",
|
"lint": "yarn run -T tsx ../../scripts/lint.ts",
|
||||||
"docs:content": "ts-node --project tsconfig.content.json ./scripts/index.ts",
|
"docs-content": "ts-node --project tsconfig.content.json ./scripts/index.ts",
|
||||||
"content": "lazy docs:content"
|
"content": "lazy docs-content"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@microsoft/tsdoc": "^0.14.2",
|
"@microsoft/tsdoc": "^0.14.2",
|
||||||
|
@ -69,7 +69,7 @@
|
||||||
"@tldraw/tlsync-client": "workspace:*",
|
"@tldraw/tlsync-client": "workspace:*",
|
||||||
"@tldraw/tlvalidate": "workspace:*",
|
"@tldraw/tlvalidate": "workspace:*",
|
||||||
"@tldraw/ui": "workspace:*",
|
"@tldraw/ui": "workspace:*",
|
||||||
"lazyrepo": "0.0.0-alpha.22",
|
"lazyrepo": "0.0.0-alpha.26",
|
||||||
"rimraf": "^4.4.0",
|
"rimraf": "^4.4.0",
|
||||||
"ts-node": "^10.9.1"
|
"ts-node": "^10.9.1"
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
"concurrently": "^7.4.0",
|
"concurrently": "^7.4.0",
|
||||||
"esbuild": "^0.16.7",
|
"esbuild": "^0.16.7",
|
||||||
"ip": "^1.1.8",
|
"ip": "^1.1.8",
|
||||||
"lazyrepo": "0.0.0-alpha.22",
|
"lazyrepo": "0.0.0-alpha.26",
|
||||||
"node-forge": "^1.3.1",
|
"node-forge": "^1.3.1",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0"
|
"react-dom": "^18.2.0"
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "yarn run -T tsx scripts/build.ts",
|
"build": "yarn run -T tsx scripts/build.ts",
|
||||||
"build:vscode-editor": "yarn run -T tsx scripts/build.ts",
|
"build:vscode-editor": "yarn run -T tsx scripts/build.ts",
|
||||||
"dev:vscode": "yarn run -T tsx scripts/dev.ts",
|
"dev-vscode": "yarn run -T tsx scripts/dev.ts",
|
||||||
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
|
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
|
||||||
"lint": "yarn run -T tsx ../../../scripts/lint.ts"
|
"lint": "yarn run -T tsx ../../../scripts/lint.ts"
|
||||||
},
|
},
|
||||||
|
@ -51,7 +51,7 @@
|
||||||
"dotenv": "^16.0.3",
|
"dotenv": "^16.0.3",
|
||||||
"esbuild": "^0.16.7",
|
"esbuild": "^0.16.7",
|
||||||
"fs-extra": "^11.1.0",
|
"fs-extra": "^11.1.0",
|
||||||
"lazyrepo": "0.0.0-alpha.22",
|
"lazyrepo": "0.0.0-alpha.26",
|
||||||
"nanoid": "^4.0.2",
|
"nanoid": "^4.0.2",
|
||||||
"react": "^18.2.0",
|
"react": "^18.2.0",
|
||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
|
|
|
@ -122,7 +122,7 @@
|
||||||
"dependencies": false
|
"dependencies": false
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev:vscode": "tsx scripts/dev.ts",
|
"dev-vscode": "tsx scripts/dev.ts",
|
||||||
"build": "cd ../editor && yarn build && cd ../extension && tsx scripts/build.ts",
|
"build": "cd ../editor && yarn build && cd ../extension && tsx scripts/build.ts",
|
||||||
"web": "vscode-test-web --browserType=chromium --extensionDevelopmentPath=.",
|
"web": "vscode-test-web --browserType=chromium --extensionDevelopmentPath=.",
|
||||||
"package": "yarn build && tsx scripts/package.ts",
|
"package": "yarn build && tsx scripts/package.ts",
|
||||||
|
@ -142,7 +142,7 @@
|
||||||
"assert": "^2.0.0",
|
"assert": "^2.0.0",
|
||||||
"esbuild": "^0.16.7",
|
"esbuild": "^0.16.7",
|
||||||
"fs-extra": "^11.1.0",
|
"fs-extra": "^11.1.0",
|
||||||
"lazyrepo": "0.0.0-alpha.22",
|
"lazyrepo": "0.0.0-alpha.26",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"mocha": "^9.1.1",
|
"mocha": "^9.1.1",
|
||||||
"process": "^0.11.10",
|
"process": "^0.11.10",
|
||||||
|
|
|
@ -12,6 +12,6 @@
|
||||||
"eslint-plugin-react": "7.28.0"
|
"eslint-plugin-react": "7.28.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"lazyrepo": "0.0.0-alpha.22"
|
"lazyrepo": "0.0.0-alpha.26"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import { LazyConfig } from 'lazyrepo'
|
import { LazyConfig } from 'lazyrepo'
|
||||||
|
|
||||||
export function generateSharedTasks(bublic: '<rootDir>' | '<rootDir>/bublic') {
|
export function generateSharedScripts(bublic: '<rootDir>' | '<rootDir>/bublic') {
|
||||||
return {
|
return {
|
||||||
build: {
|
build: {
|
||||||
runsAfter: { 'build:package': {}, prebuild: {} },
|
runsAfter: { 'build-package': {}, prebuild: {} },
|
||||||
},
|
},
|
||||||
'build:vscode-editor': {
|
'build:vscode-editor': {
|
||||||
runsAfter: { 'refresh-assets': {} },
|
runsAfter: { 'refresh-assets': {} },
|
||||||
|
@ -13,22 +13,22 @@ export function generateSharedTasks(bublic: '<rootDir>' | '<rootDir>/bublic') {
|
||||||
runsAfter: { 'refresh-assets': {} },
|
runsAfter: { 'refresh-assets': {} },
|
||||||
cache: 'none',
|
cache: 'none',
|
||||||
},
|
},
|
||||||
'dev:vscode': {
|
'dev-vscode': {
|
||||||
runsAfter: { 'build:vscode-editor': {} },
|
runsAfter: { 'build:vscode-editor': {} },
|
||||||
},
|
},
|
||||||
test: {
|
test: {
|
||||||
baseCommand: 'yarn run -T jest',
|
baseCommand: 'yarn run -T jest',
|
||||||
runsAfter: { 'refresh-assets': {} },
|
runsAfter: { 'refresh-assets': {} },
|
||||||
},
|
},
|
||||||
'test:coverage': {
|
'test-coverage': {
|
||||||
baseCommand: 'yarn run -T jest --coverage',
|
baseCommand: 'yarn run -T jest --coverage',
|
||||||
},
|
},
|
||||||
lint: {
|
lint: {
|
||||||
execution: 'independent',
|
execution: 'independent',
|
||||||
runsAfter: { 'build:types': {} },
|
runsAfter: { 'build-types': {} },
|
||||||
},
|
},
|
||||||
'build:package': {
|
'build-package': {
|
||||||
runsAfter: { 'build:api': {}, prebuild: {} },
|
runsAfter: { 'build-api': {}, prebuild: {} },
|
||||||
cache: {
|
cache: {
|
||||||
inputs: ['api/**/*', 'src/**/*'],
|
inputs: ['api/**/*', 'src/**/*'],
|
||||||
},
|
},
|
||||||
|
@ -43,43 +43,45 @@ export function generateSharedTasks(bublic: '<rootDir>' | '<rootDir>/bublic') {
|
||||||
inputs: ['package.json', `${bublic}/scripts/refresh-assets.ts`, `${bublic}/assets/**/*`],
|
inputs: ['package.json', `${bublic}/scripts/refresh-assets.ts`, `${bublic}/assets/**/*`],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'build:types': {
|
'build-types': {
|
||||||
execution: 'top-level',
|
execution: 'top-level',
|
||||||
baseCommand: `tsx ${bublic}/scripts/typecheck.ts`,
|
baseCommand: `tsx ${bublic}/scripts/typecheck.ts`,
|
||||||
cache: {
|
cache: {
|
||||||
inputs: {
|
inputs: {
|
||||||
include: [
|
include: ['<allWorkspaceDirs>/**/*.{ts,tsx}', '<allWorkspaceDirs>/tsconfig.json'],
|
||||||
'{,bublic/}packages/*/src/**/*.{ts,tsx}',
|
exclude: ['<allWorkspaceDirs>/dist*/**/*', '<allWorkspaceDirs>/api/**/*'],
|
||||||
'{,bublic/}{apps,scripts,e2e}/**/*.{ts,tsx}',
|
|
||||||
'{,bublic/}{apps,packages}/*/tsconfig.json',
|
|
||||||
'{,bublic/}{scripts,e2e}/tsconfig.json',
|
|
||||||
],
|
|
||||||
exclude: ['**/dist*/**/*.d.ts'],
|
|
||||||
},
|
},
|
||||||
|
outputs: ['<allWorkspaceDirs>/*.tsbuildinfo', '<allWorkspaceDirs>/.tsbuild/**/*'],
|
||||||
},
|
},
|
||||||
runsAfter: {
|
runsAfter: {
|
||||||
'refresh-assets': {},
|
'refresh-assets': {},
|
||||||
'maybe-clean-tsbuildinfo': {},
|
'maybe-clean-tsbuildinfo': {},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'build:api': {
|
'build-api': {
|
||||||
execution: 'independent',
|
execution: 'independent',
|
||||||
cache: {
|
cache: {
|
||||||
inputs: ['.tsbuild/**/*.d.ts', 'tsconfig.json'],
|
inputs: ['.tsbuild/**/*.d.ts', 'tsconfig.json'],
|
||||||
|
outputs: ['api/**/*'],
|
||||||
|
},
|
||||||
|
runsAfter: {
|
||||||
|
'build-types': {
|
||||||
|
// Because build-types is top level, if usesOutput were set to true every
|
||||||
|
// build-api task would depend on all the .tsbuild files in the whole
|
||||||
|
// repo. So we set this to false and configure it to use only the
|
||||||
|
// local .tsbuild files
|
||||||
|
usesOutput: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
runsAfter: { 'build:types': {} },
|
|
||||||
},
|
},
|
||||||
'build:docs': {
|
'build-docs': {
|
||||||
runsAfter: { 'docs:content': {} },
|
runsAfter: { 'docs-content': {} },
|
||||||
},
|
},
|
||||||
'dev:docs': {
|
'dev-docs': {
|
||||||
runsAfter: { 'docs:content': {} },
|
runsAfter: { 'docs-content': {} },
|
||||||
},
|
},
|
||||||
'app:build': {
|
'docs-content': {
|
||||||
runsAfter: { 'build:types': {} },
|
runsAfter: { 'build-api': {} },
|
||||||
},
|
|
||||||
'docs:content': {
|
|
||||||
runsAfter: { 'build:api': {} },
|
|
||||||
cache: {
|
cache: {
|
||||||
inputs: [
|
inputs: [
|
||||||
'content/**',
|
'content/**',
|
||||||
|
@ -89,36 +91,35 @@ export function generateSharedTasks(bublic: '<rootDir>' | '<rootDir>/bublic') {
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
'api:check': {
|
'api-check': {
|
||||||
execution: 'top-level',
|
execution: 'top-level',
|
||||||
baseCommand: `tsx ${bublic}/scripts/api-check.ts`,
|
baseCommand: `tsx ${bublic}/scripts/api-check.ts`,
|
||||||
runsAfter: { 'build:api': {} },
|
runsAfter: { 'build-api': {} },
|
||||||
cache: {
|
cache: {
|
||||||
inputs: [`${bublic}/packages/*/api/public.d.ts`],
|
inputs: [`${bublic}/packages/*/api/public.d.ts`],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
} satisfies LazyConfig['tasks']
|
} satisfies LazyConfig['scripts']
|
||||||
}
|
}
|
||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
baseCacheConfig: {
|
baseCacheConfig: {
|
||||||
include: [
|
include: [
|
||||||
'<rootDir>/package.json',
|
'<rootDir>/{,bublic/}package.json',
|
||||||
'<rootDir>/public-yarn.lock',
|
'<rootDir>/{,bublic/}public-yarn.lock',
|
||||||
'<rootDir>/lazy.config.ts',
|
'<rootDir>/{,bublic/}lazy.config.ts',
|
||||||
'<rootDir>/config/**/*',
|
'<rootDir>/{,bublic/}config/**/*',
|
||||||
'<rootDir>/scripts/**/*',
|
'<rootDir>/{,bublic/}scripts/**/*',
|
||||||
],
|
],
|
||||||
exclude: [
|
exclude: [
|
||||||
'coverage/**/*',
|
'<allWorkspaceDirs>/coverage/**/*',
|
||||||
'dist*/**/*',
|
'<allWorkspaceDirs>/dist*/**/*',
|
||||||
'**/*.tsbuildinfo',
|
'**/*.tsbuildinfo',
|
||||||
'<rootDir>/apps/app/bublic/*.{js,map}',
|
'<rootDir>/{,bublic/}apps/docs/content/gen/**/*',
|
||||||
'<rootDir>/apps/docs/content/gen/**/*',
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
tasks: {
|
scripts: {
|
||||||
...generateSharedTasks('<rootDir>'),
|
...generateSharedScripts('<rootDir>'),
|
||||||
},
|
},
|
||||||
} satisfies LazyConfig
|
} satisfies LazyConfig
|
||||||
|
|
||||||
|
|
18
package.json
18
package.json
|
@ -36,18 +36,18 @@
|
||||||
"postinstall": "yarn refresh-assets",
|
"postinstall": "yarn refresh-assets",
|
||||||
"refresh-assets": "lazy refresh-assets",
|
"refresh-assets": "lazy refresh-assets",
|
||||||
"build": "lazy build",
|
"build": "lazy build",
|
||||||
"build:docs": "lazy build:docs",
|
"build-docs": "lazy build-docs",
|
||||||
"dev": "lazy run dev --filter ./apps/examples --filter ./packages/tldraw",
|
"dev": "lazy run dev --filter='{,bublic/}apps/examples' --filter='{,bublic/}packages/tldraw'",
|
||||||
"dev:docs": "lazy run dev:docs",
|
"dev-docs": "lazy run dev-docs",
|
||||||
"dev:vscode": "code ./apps/vscode/extension && lazy run dev --filter './apps/vscode/{extension,editor}'",
|
"dev-vscode": "code ./apps/vscode/extension && lazy run dev --filter='{,bublic/}apps/vscode/{extension,editor}'",
|
||||||
"build:types": "lazy inherit",
|
"build-types": "lazy inherit",
|
||||||
"build:api": "lazy build:api",
|
"build-api": "lazy build-api",
|
||||||
"build:package": "lazy build:package",
|
"build-package": "lazy build-package",
|
||||||
"lint": "lazy lint",
|
"lint": "lazy lint",
|
||||||
"format": "prettier --write \"**/*.{ts,tsx}\"",
|
"format": "prettier --write \"**/*.{ts,tsx}\"",
|
||||||
"typecheck": "yarn refresh-assets && tsx scripts/typecheck.ts",
|
"typecheck": "yarn refresh-assets && tsx scripts/typecheck.ts",
|
||||||
"check-scripts": "tsx scripts/check-scripts.ts",
|
"check-scripts": "tsx scripts/check-scripts.ts",
|
||||||
"api:check": "lazy api:check",
|
"api-check": "lazy api-check",
|
||||||
"test": "lazy test",
|
"test": "lazy test",
|
||||||
"prepare": "husky install"
|
"prepare": "husky install"
|
||||||
},
|
},
|
||||||
|
@ -93,7 +93,7 @@
|
||||||
"auto": "^10.44.0",
|
"auto": "^10.44.0",
|
||||||
"fs-extra": "^11.1.0",
|
"fs-extra": "^11.1.0",
|
||||||
"json5": "^2.2.3",
|
"json5": "^2.2.3",
|
||||||
"lazyrepo": "0.0.0-alpha.22",
|
"lazyrepo": "0.0.0-alpha.26",
|
||||||
"rimraf": "^4.4.0",
|
"rimraf": "^4.4.0",
|
||||||
"tsx": "^3.12.2",
|
"tsx": "^3.12.2",
|
||||||
"vercel": "^28.16.15"
|
"vercel": "^28.16.15"
|
||||||
|
|
|
@ -36,9 +36,9 @@
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "lazy inherit --passWithNoTests",
|
"test": "lazy inherit --passWithNoTests",
|
||||||
"test:coverage": "lazy inherit --passWithNoTests",
|
"test-coverage": "lazy inherit --passWithNoTests",
|
||||||
"build:package": "yarn run -T tsx ../../scripts/build-package.ts",
|
"build-package": "yarn run -T tsx ../../scripts/build-package.ts",
|
||||||
"build:api": "yarn run -T tsx ../../scripts/build-api.ts",
|
"build-api": "yarn run -T tsx ../../scripts/build-api.ts",
|
||||||
"prepack": "yarn run -T tsx ../../scripts/prepack.ts",
|
"prepack": "yarn run -T tsx ../../scripts/prepack.ts",
|
||||||
"postpack": "../../scripts/postpack.sh",
|
"postpack": "../../scripts/postpack.sh",
|
||||||
"pack-tarball": "yarn pack",
|
"pack-tarball": "yarn pack",
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
"@tldraw/utils": "workspace:*"
|
"@tldraw/utils": "workspace:*"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"lazyrepo": "0.0.0-alpha.22",
|
"lazyrepo": "0.0.0-alpha.26",
|
||||||
"ts-node-dev": "^1.1.8"
|
"ts-node-dev": "^1.1.8"
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
|
|
|
@ -36,10 +36,10 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "lazy inherit",
|
"test": "lazy inherit",
|
||||||
"benchmark": "yarn run -T tsx ./scripts/benchmark.ts",
|
"benchmark": "yarn run -T tsx ./scripts/benchmark.ts",
|
||||||
"test:coverage": "lazy inherit",
|
"test-coverage": "lazy inherit",
|
||||||
"build": "lazy build:package",
|
"build": "lazy build-package",
|
||||||
"build:package": "yarn run -T tsx ../../scripts/build-package.ts",
|
"build-package": "yarn run -T tsx ../../scripts/build-package.ts",
|
||||||
"build:api": "yarn run -T tsx ../../scripts/build-api.ts",
|
"build-api": "yarn run -T tsx ../../scripts/build-api.ts",
|
||||||
"prepack": "yarn run -T tsx ../../scripts/prepack.ts",
|
"prepack": "yarn run -T tsx ../../scripts/prepack.ts",
|
||||||
"postpack": "../../scripts/postpack.sh",
|
"postpack": "../../scripts/postpack.sh",
|
||||||
"pack-tarball": "yarn pack",
|
"pack-tarball": "yarn pack",
|
||||||
|
@ -82,7 +82,7 @@
|
||||||
"gzip-size": "^7.0.0",
|
"gzip-size": "^7.0.0",
|
||||||
"jest-canvas-mock": "^2.4.0",
|
"jest-canvas-mock": "^2.4.0",
|
||||||
"jest-environment-jsdom": "^29.4.3",
|
"jest-environment-jsdom": "^29.4.3",
|
||||||
"lazyrepo": "0.0.0-alpha.22",
|
"lazyrepo": "0.0.0-alpha.26",
|
||||||
"react-test-renderer": "^18.2.0",
|
"react-test-renderer": "^18.2.0",
|
||||||
"resize-observer-polyfill": "^1.5.1"
|
"resize-observer-polyfill": "^1.5.1"
|
||||||
},
|
},
|
||||||
|
|
|
@ -32,9 +32,9 @@
|
||||||
"files": [],
|
"files": [],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "lazy inherit",
|
"test": "lazy inherit",
|
||||||
"test:coverage": "lazy inherit",
|
"test-coverage": "lazy inherit",
|
||||||
"build:package": "yarn run -T tsx ../../scripts/build-package.ts",
|
"build-package": "yarn run -T tsx ../../scripts/build-package.ts",
|
||||||
"build:api": "yarn run -T tsx ../../scripts/build-api.ts",
|
"build-api": "yarn run -T tsx ../../scripts/build-api.ts",
|
||||||
"prepack": "yarn run -T tsx ../../scripts/prepack.ts",
|
"prepack": "yarn run -T tsx ../../scripts/prepack.ts",
|
||||||
"postpack": "../../scripts/postpack.sh",
|
"postpack": "../../scripts/postpack.sh",
|
||||||
"pack-tarball": "yarn pack",
|
"pack-tarball": "yarn pack",
|
||||||
|
@ -60,6 +60,6 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"lazyrepo": "0.0.0-alpha.22"
|
"lazyrepo": "0.0.0-alpha.26"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,8 +31,8 @@
|
||||||
"/* GOTCHA */": "files will include ./dist and index.d.ts by default, add any others you want to include in here",
|
"/* GOTCHA */": "files will include ./dist and index.d.ts by default, add any others you want to include in here",
|
||||||
"files": [],
|
"files": [],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build:package": "yarn run -T tsx ../../scripts/build-package.ts",
|
"build-package": "yarn run -T tsx ../../scripts/build-package.ts",
|
||||||
"build:api": "yarn run -T tsx ../../scripts/build-api.ts",
|
"build-api": "yarn run -T tsx ../../scripts/build-api.ts",
|
||||||
"prepack": "yarn run -T tsx ../../scripts/prepack.ts",
|
"prepack": "yarn run -T tsx ../../scripts/prepack.ts",
|
||||||
"postpack": "../../scripts/postpack.sh",
|
"postpack": "../../scripts/postpack.sh",
|
||||||
"pack-tarball": "yarn pack",
|
"pack-tarball": "yarn pack",
|
||||||
|
@ -42,6 +42,6 @@
|
||||||
"core-js": "^3.27.2"
|
"core-js": "^3.27.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"lazyrepo": "0.0.0-alpha.22"
|
"lazyrepo": "0.0.0-alpha.26"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,9 +32,9 @@
|
||||||
"files": [],
|
"files": [],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "lazy inherit",
|
"test": "lazy inherit",
|
||||||
"test:coverage": "lazy inherit",
|
"test-coverage": "lazy inherit",
|
||||||
"build:package": "yarn run -T tsx ../../scripts/build-package.ts",
|
"build-package": "yarn run -T tsx ../../scripts/build-package.ts",
|
||||||
"build:api": "yarn run -T tsx ../../scripts/build-api.ts",
|
"build-api": "yarn run -T tsx ../../scripts/build-api.ts",
|
||||||
"prepack": "yarn run -T tsx ../../scripts/prepack.ts",
|
"prepack": "yarn run -T tsx ../../scripts/prepack.ts",
|
||||||
"postpack": "../../scripts/postpack.sh",
|
"postpack": "../../scripts/postpack.sh",
|
||||||
"pack-tarball": "yarn pack",
|
"pack-tarball": "yarn pack",
|
||||||
|
@ -54,6 +54,6 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"benchmark": "^2.1.4",
|
"benchmark": "^2.1.4",
|
||||||
"lazyrepo": "0.0.0-alpha.22"
|
"lazyrepo": "0.0.0-alpha.26"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,11 +30,11 @@
|
||||||
"types": "./.tsbuild/index.d.ts",
|
"types": "./.tsbuild/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "lazy inherit",
|
"test": "lazy inherit",
|
||||||
"test:coverage": "lazy inherit",
|
"test-coverage": "lazy inherit",
|
||||||
"dev": "chokidar '../{editor,ui}/*.css' -c 'node ./scripts/copy-css-files.mjs' --initial",
|
"dev": "chokidar '../{editor,ui}/*.css' -c 'node ./scripts/copy-css-files.mjs' --initial",
|
||||||
"prebuild": "node ./scripts/copy-css-files.mjs",
|
"prebuild": "node ./scripts/copy-css-files.mjs",
|
||||||
"build:package": "yarn run -T tsx ../../scripts/build-package.ts",
|
"build-package": "yarn run -T tsx ../../scripts/build-package.ts",
|
||||||
"build:api": "yarn run -T tsx ../../scripts/build-api.ts",
|
"build-api": "yarn run -T tsx ../../scripts/build-api.ts",
|
||||||
"prepack": "yarn run -T tsx ../../scripts/prepack.ts",
|
"prepack": "yarn run -T tsx ../../scripts/prepack.ts",
|
||||||
"postpack": "../../scripts/postpack.sh",
|
"postpack": "../../scripts/postpack.sh",
|
||||||
"pack-tarball": "yarn pack",
|
"pack-tarball": "yarn pack",
|
||||||
|
@ -63,7 +63,7 @@
|
||||||
"gzip-size": "^7.0.0",
|
"gzip-size": "^7.0.0",
|
||||||
"jest-canvas-mock": "^2.4.0",
|
"jest-canvas-mock": "^2.4.0",
|
||||||
"jest-environment-jsdom": "^28.1.2",
|
"jest-environment-jsdom": "^28.1.2",
|
||||||
"lazyrepo": "0.0.0-alpha.22",
|
"lazyrepo": "0.0.0-alpha.26",
|
||||||
"resize-observer-polyfill": "^1.5.1"
|
"resize-observer-polyfill": "^1.5.1"
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
|
|
|
@ -32,14 +32,14 @@
|
||||||
"files": [],
|
"files": [],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "lazy inherit",
|
"test": "lazy inherit",
|
||||||
"test:coverage": "lazy inherit",
|
"test-coverage": "lazy inherit",
|
||||||
"new-record": "node ./scripts/new-record.js",
|
"new-record": "node ./scripts/new-record.js",
|
||||||
"new-shape": "node ./scripts/new-shape.js",
|
"new-shape": "node ./scripts/new-shape.js",
|
||||||
"new-asset": "node ./scripts/new-asset.js",
|
"new-asset": "node ./scripts/new-asset.js",
|
||||||
"index": "node ./scripts/build-index.js && yarn format",
|
"index": "node ./scripts/build-index.js && yarn format",
|
||||||
"format": "yarn run -T prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md}\"",
|
"format": "yarn run -T prettier --write \"src/**/*.{ts,tsx,js,jsx,json,md}\"",
|
||||||
"build:package": "yarn run -T tsx ../../scripts/build-package.ts",
|
"build-package": "yarn run -T tsx ../../scripts/build-package.ts",
|
||||||
"build:api": "yarn run -T tsx ../../scripts/build-api.ts",
|
"build-api": "yarn run -T tsx ../../scripts/build-api.ts",
|
||||||
"prepack": "yarn run -T tsx ../../scripts/prepack.ts",
|
"prepack": "yarn run -T tsx ../../scripts/prepack.ts",
|
||||||
"postpack": "../../scripts/postpack.sh",
|
"postpack": "../../scripts/postpack.sh",
|
||||||
"pack-tarball": "yarn pack",
|
"pack-tarball": "yarn pack",
|
||||||
|
@ -47,7 +47,7 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"kleur": "^4.1.5",
|
"kleur": "^4.1.5",
|
||||||
"lazyrepo": "0.0.0-alpha.22"
|
"lazyrepo": "0.0.0-alpha.26"
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
"preset": "config/jest/node",
|
"preset": "config/jest/node",
|
||||||
|
|
|
@ -32,9 +32,9 @@
|
||||||
"files": [],
|
"files": [],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "lazy inherit",
|
"test": "lazy inherit",
|
||||||
"test:coverage": "lazy inherit",
|
"test-coverage": "lazy inherit",
|
||||||
"build:package": "yarn run -T tsx ../../scripts/build-package.ts",
|
"build-package": "yarn run -T tsx ../../scripts/build-package.ts",
|
||||||
"build:api": "yarn run -T tsx ../../scripts/build-api.ts",
|
"build-api": "yarn run -T tsx ../../scripts/build-api.ts",
|
||||||
"prepack": "yarn run -T tsx ../../scripts/prepack.ts",
|
"prepack": "yarn run -T tsx ../../scripts/prepack.ts",
|
||||||
"postpack": "../../scripts/postpack.sh",
|
"postpack": "../../scripts/postpack.sh",
|
||||||
"pack-tarball": "yarn pack",
|
"pack-tarball": "yarn pack",
|
||||||
|
@ -51,7 +51,7 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@peculiar/webcrypto": "^1.4.0",
|
"@peculiar/webcrypto": "^1.4.0",
|
||||||
"@types/lodash.isequal": "^4.5.6",
|
"@types/lodash.isequal": "^4.5.6",
|
||||||
"lazyrepo": "0.0.0-alpha.22",
|
"lazyrepo": "0.0.0-alpha.26",
|
||||||
"raf": "^3.4.1"
|
"raf": "^3.4.1"
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
|
|
|
@ -32,9 +32,9 @@
|
||||||
"files": [],
|
"files": [],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "lazy inherit",
|
"test": "lazy inherit",
|
||||||
"test:coverage": "lazy inherit",
|
"test-coverage": "lazy inherit",
|
||||||
"build:package": "yarn run -T tsx ../../scripts/build-package.ts",
|
"build-package": "yarn run -T tsx ../../scripts/build-package.ts",
|
||||||
"build:api": "yarn run -T tsx ../../scripts/build-api.ts",
|
"build-api": "yarn run -T tsx ../../scripts/build-api.ts",
|
||||||
"prepack": "yarn run -T tsx ../../scripts/prepack.ts",
|
"prepack": "yarn run -T tsx ../../scripts/prepack.ts",
|
||||||
"postpack": "../../scripts/postpack.sh",
|
"postpack": "../../scripts/postpack.sh",
|
||||||
"pack-tarball": "yarn pack",
|
"pack-tarball": "yarn pack",
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/react": "*",
|
"@types/react": "*",
|
||||||
"@types/react-dom": "*",
|
"@types/react-dom": "*",
|
||||||
"lazyrepo": "0.0.0-alpha.22",
|
"lazyrepo": "0.0.0-alpha.26",
|
||||||
"ws": "^8.10.0"
|
"ws": "^8.10.0"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
|
|
|
@ -32,9 +32,9 @@
|
||||||
"files": [],
|
"files": [],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "lazy inherit",
|
"test": "lazy inherit",
|
||||||
"test:coverage": "lazy inherit",
|
"test-coverage": "lazy inherit",
|
||||||
"build:package": "yarn run -T tsx ../../scripts/build-package.ts",
|
"build-package": "yarn run -T tsx ../../scripts/build-package.ts",
|
||||||
"build:api": "yarn run -T tsx ../../scripts/build-api.ts",
|
"build-api": "yarn run -T tsx ../../scripts/build-api.ts",
|
||||||
"prepack": "yarn run -T tsx ../../scripts/prepack.ts",
|
"prepack": "yarn run -T tsx ../../scripts/prepack.ts",
|
||||||
"postpack": "../../scripts/postpack.sh",
|
"postpack": "../../scripts/postpack.sh",
|
||||||
"pack-tarball": "yarn pack",
|
"pack-tarball": "yarn pack",
|
||||||
|
@ -53,6 +53,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"lazyrepo": "0.0.0-alpha.22"
|
"lazyrepo": "0.0.0-alpha.26"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,9 +35,9 @@
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "lazy inherit --passWithNoTests",
|
"test": "lazy inherit --passWithNoTests",
|
||||||
"test:coverage": "yarn run -T jest --passWithNoTests --coverage",
|
"test-coverage": "yarn run -T jest --passWithNoTests --coverage",
|
||||||
"build:package": "yarn run -T tsx ../../scripts/build-package.ts",
|
"build-package": "yarn run -T tsx ../../scripts/build-package.ts",
|
||||||
"build:api": "yarn run -T tsx ../../scripts/build-api.ts",
|
"build-api": "yarn run -T tsx ../../scripts/build-api.ts",
|
||||||
"prepack": "yarn run -T tsx ../../scripts/prepack.ts",
|
"prepack": "yarn run -T tsx ../../scripts/prepack.ts",
|
||||||
"postpack": "../../scripts/postpack.sh",
|
"postpack": "../../scripts/postpack.sh",
|
||||||
"pack-tarball": "yarn pack",
|
"pack-tarball": "yarn pack",
|
||||||
|
@ -77,7 +77,7 @@
|
||||||
"gzip-size": "^7.0.0",
|
"gzip-size": "^7.0.0",
|
||||||
"jest-canvas-mock": "^2.4.0",
|
"jest-canvas-mock": "^2.4.0",
|
||||||
"jest-environment-jsdom": "^28.1.2",
|
"jest-environment-jsdom": "^28.1.2",
|
||||||
"lazyrepo": "0.0.0-alpha.22",
|
"lazyrepo": "0.0.0-alpha.26",
|
||||||
"resize-observer-polyfill": "^1.5.1"
|
"resize-observer-polyfill": "^1.5.1"
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
|
|
|
@ -32,9 +32,9 @@
|
||||||
"files": [],
|
"files": [],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "lazy inherit",
|
"test": "lazy inherit",
|
||||||
"test:coverage": "lazy inherit",
|
"test-coverage": "lazy inherit",
|
||||||
"build:package": "yarn run -T tsx ../../scripts/build-package.ts",
|
"build-package": "yarn run -T tsx ../../scripts/build-package.ts",
|
||||||
"build:api": "yarn run -T tsx ../../scripts/build-api.ts",
|
"build-api": "yarn run -T tsx ../../scripts/build-api.ts",
|
||||||
"prepack": "yarn run -T tsx ../../scripts/prepack.ts",
|
"prepack": "yarn run -T tsx ../../scripts/prepack.ts",
|
||||||
"postpack": "../../scripts/postpack.sh",
|
"postpack": "../../scripts/postpack.sh",
|
||||||
"pack-tarball": "yarn pack",
|
"pack-tarball": "yarn pack",
|
||||||
|
@ -50,6 +50,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"lazyrepo": "0.0.0-alpha.22"
|
"lazyrepo": "0.0.0-alpha.26"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -4275,7 +4275,7 @@ __metadata:
|
||||||
resolution: "@tldraw/assets@workspace:packages/assets"
|
resolution: "@tldraw/assets@workspace:packages/assets"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@tldraw/utils": "workspace:*"
|
"@tldraw/utils": "workspace:*"
|
||||||
lazyrepo: 0.0.0-alpha.22
|
lazyrepo: 0.0.0-alpha.26
|
||||||
ts-node-dev: ^1.1.8
|
ts-node-dev: ^1.1.8
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
@ -4302,7 +4302,7 @@ __metadata:
|
||||||
eslint: 8.36.0
|
eslint: 8.36.0
|
||||||
eslint-config-next: 13.2.4
|
eslint-config-next: 13.2.4
|
||||||
gray-matter: ^4.0.3
|
gray-matter: ^4.0.3
|
||||||
lazyrepo: 0.0.0-alpha.22
|
lazyrepo: 0.0.0-alpha.26
|
||||||
next: 13.2.4
|
next: 13.2.4
|
||||||
next-mdx-remote: ^4.4.1
|
next-mdx-remote: ^4.4.1
|
||||||
next-remote-watch: ^2.0.0
|
next-remote-watch: ^2.0.0
|
||||||
|
@ -4349,7 +4349,7 @@ __metadata:
|
||||||
is-plain-object: ^5.0.0
|
is-plain-object: ^5.0.0
|
||||||
jest-canvas-mock: ^2.4.0
|
jest-canvas-mock: ^2.4.0
|
||||||
jest-environment-jsdom: ^29.4.3
|
jest-environment-jsdom: ^29.4.3
|
||||||
lazyrepo: 0.0.0-alpha.22
|
lazyrepo: 0.0.0-alpha.26
|
||||||
lodash.throttle: ^4.1.1
|
lodash.throttle: ^4.1.1
|
||||||
lodash.uniq: ^4.5.0
|
lodash.uniq: ^4.5.0
|
||||||
nanoid: ^3.0.0
|
nanoid: ^3.0.0
|
||||||
|
@ -4372,7 +4372,7 @@ __metadata:
|
||||||
"@tldraw/tlvalidate": "workspace:*"
|
"@tldraw/tlvalidate": "workspace:*"
|
||||||
"@tldraw/ui": "workspace:*"
|
"@tldraw/ui": "workspace:*"
|
||||||
"@tldraw/utils": "workspace:*"
|
"@tldraw/utils": "workspace:*"
|
||||||
lazyrepo: 0.0.0-alpha.22
|
lazyrepo: 0.0.0-alpha.26
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
|
@ -4405,7 +4405,7 @@ __metadata:
|
||||||
inquirer: ^9.1.4
|
inquirer: ^9.1.4
|
||||||
jest: ^28.1.1
|
jest: ^28.1.1
|
||||||
json5: ^2.2.3
|
json5: ^2.2.3
|
||||||
lazyrepo: 0.0.0-alpha.22
|
lazyrepo: 0.0.0-alpha.26
|
||||||
lint-staged: ">=10"
|
lint-staged: ">=10"
|
||||||
open: ^8.4.0
|
open: ^8.4.0
|
||||||
prettier: ^2.8.6
|
prettier: ^2.8.6
|
||||||
|
@ -4422,7 +4422,7 @@ __metadata:
|
||||||
resolution: "@tldraw/polyfills@workspace:packages/polyfills"
|
resolution: "@tldraw/polyfills@workspace:packages/polyfills"
|
||||||
dependencies:
|
dependencies:
|
||||||
core-js: ^3.27.2
|
core-js: ^3.27.2
|
||||||
lazyrepo: 0.0.0-alpha.22
|
lazyrepo: 0.0.0-alpha.26
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
|
@ -4432,7 +4432,7 @@ __metadata:
|
||||||
dependencies:
|
dependencies:
|
||||||
"@tldraw/tlschema": "workspace:*"
|
"@tldraw/tlschema": "workspace:*"
|
||||||
benchmark: ^2.1.4
|
benchmark: ^2.1.4
|
||||||
lazyrepo: 0.0.0-alpha.22
|
lazyrepo: 0.0.0-alpha.26
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
|
@ -4450,7 +4450,7 @@ __metadata:
|
||||||
glob: ^8.0.3
|
glob: ^8.0.3
|
||||||
is-ci: ^3.0.1
|
is-ci: ^3.0.1
|
||||||
kleur: ^4.1.5
|
kleur: ^4.1.5
|
||||||
lazyrepo: 0.0.0-alpha.22
|
lazyrepo: 0.0.0-alpha.26
|
||||||
prettier: ^2.8.7
|
prettier: ^2.8.7
|
||||||
recast: ^0.22.0
|
recast: ^0.22.0
|
||||||
rimraf: ^4.4.0
|
rimraf: ^4.4.0
|
||||||
|
@ -4476,7 +4476,7 @@ __metadata:
|
||||||
gzip-size: ^7.0.0
|
gzip-size: ^7.0.0
|
||||||
jest-canvas-mock: ^2.4.0
|
jest-canvas-mock: ^2.4.0
|
||||||
jest-environment-jsdom: ^28.1.2
|
jest-environment-jsdom: ^28.1.2
|
||||||
lazyrepo: 0.0.0-alpha.22
|
lazyrepo: 0.0.0-alpha.26
|
||||||
resize-observer-polyfill: ^1.5.1
|
resize-observer-polyfill: ^1.5.1
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
react: ^18
|
react: ^18
|
||||||
|
@ -4492,7 +4492,7 @@ __metadata:
|
||||||
"@tldraw/tlvalidate": "workspace:*"
|
"@tldraw/tlvalidate": "workspace:*"
|
||||||
"@tldraw/utils": "workspace:*"
|
"@tldraw/utils": "workspace:*"
|
||||||
kleur: ^4.1.5
|
kleur: ^4.1.5
|
||||||
lazyrepo: 0.0.0-alpha.22
|
lazyrepo: 0.0.0-alpha.26
|
||||||
nanoid: ^3.0.0
|
nanoid: ^3.0.0
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
@ -4504,7 +4504,7 @@ __metadata:
|
||||||
"@peculiar/webcrypto": ^1.4.0
|
"@peculiar/webcrypto": ^1.4.0
|
||||||
"@tldraw/utils": "workspace:*"
|
"@tldraw/utils": "workspace:*"
|
||||||
"@types/lodash.isequal": ^4.5.6
|
"@types/lodash.isequal": ^4.5.6
|
||||||
lazyrepo: 0.0.0-alpha.22
|
lazyrepo: 0.0.0-alpha.26
|
||||||
lodash.isequal: ^4.5.0
|
lodash.isequal: ^4.5.0
|
||||||
nanoid: ^3.0.0
|
nanoid: ^3.0.0
|
||||||
raf: ^3.4.1
|
raf: ^3.4.1
|
||||||
|
@ -4523,7 +4523,7 @@ __metadata:
|
||||||
"@types/react": "*"
|
"@types/react": "*"
|
||||||
"@types/react-dom": "*"
|
"@types/react-dom": "*"
|
||||||
idb: ^7.1.0
|
idb: ^7.1.0
|
||||||
lazyrepo: 0.0.0-alpha.22
|
lazyrepo: 0.0.0-alpha.26
|
||||||
react: "*"
|
react: "*"
|
||||||
ws: ^8.10.0
|
ws: ^8.10.0
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
|
@ -4540,7 +4540,7 @@ __metadata:
|
||||||
resolution: "@tldraw/tlvalidate@workspace:packages/tlvalidate"
|
resolution: "@tldraw/tlvalidate@workspace:packages/tlvalidate"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@tldraw/utils": "workspace:*"
|
"@tldraw/utils": "workspace:*"
|
||||||
lazyrepo: 0.0.0-alpha.22
|
lazyrepo: 0.0.0-alpha.26
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
|
@ -4572,7 +4572,7 @@ __metadata:
|
||||||
idb: ^7.1.1
|
idb: ^7.1.1
|
||||||
jest-canvas-mock: ^2.4.0
|
jest-canvas-mock: ^2.4.0
|
||||||
jest-environment-jsdom: ^28.1.2
|
jest-environment-jsdom: ^28.1.2
|
||||||
lazyrepo: 0.0.0-alpha.22
|
lazyrepo: 0.0.0-alpha.26
|
||||||
lz-string: ^1.4.4
|
lz-string: ^1.4.4
|
||||||
resize-observer-polyfill: ^1.5.1
|
resize-observer-polyfill: ^1.5.1
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
|
@ -4587,7 +4587,7 @@ __metadata:
|
||||||
version: 0.0.0-use.local
|
version: 0.0.0-use.local
|
||||||
resolution: "@tldraw/utils@workspace:packages/utils"
|
resolution: "@tldraw/utils@workspace:packages/utils"
|
||||||
dependencies:
|
dependencies:
|
||||||
lazyrepo: 0.0.0-alpha.22
|
lazyrepo: 0.0.0-alpha.26
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
|
@ -4612,7 +4612,7 @@ __metadata:
|
||||||
dotenv: ^16.0.3
|
dotenv: ^16.0.3
|
||||||
esbuild: ^0.16.7
|
esbuild: ^0.16.7
|
||||||
fs-extra: ^11.1.0
|
fs-extra: ^11.1.0
|
||||||
lazyrepo: 0.0.0-alpha.22
|
lazyrepo: 0.0.0-alpha.26
|
||||||
nanoid: ^4.0.2
|
nanoid: ^4.0.2
|
||||||
react: ^18.2.0
|
react: ^18.2.0
|
||||||
react-dom: ^18.2.0
|
react-dom: ^18.2.0
|
||||||
|
@ -6974,7 +6974,7 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"ci-info@npm:^3.1.0, ci-info@npm:^3.2.0":
|
"ci-info@npm:^3.1.0, ci-info@npm:^3.2.0, ci-info@npm:^3.8.0":
|
||||||
version: 3.8.0
|
version: 3.8.0
|
||||||
resolution: "ci-info@npm:3.8.0"
|
resolution: "ci-info@npm:3.8.0"
|
||||||
checksum: d0a4d3160497cae54294974a7246202244fff031b0a6ea20dd57b10ec510aa17399c41a1b0982142c105f3255aff2173e5c0dd7302ee1b2f28ba3debda375098
|
checksum: d0a4d3160497cae54294974a7246202244fff031b0a6ea20dd57b10ec510aa17399c41a1b0982142c105f3255aff2173e5c0dd7302ee1b2f28ba3debda375098
|
||||||
|
@ -7335,7 +7335,7 @@ __metadata:
|
||||||
dependencies:
|
dependencies:
|
||||||
eslint-config-prettier: ^8.3.0
|
eslint-config-prettier: ^8.3.0
|
||||||
eslint-plugin-react: 7.28.0
|
eslint-plugin-react: 7.28.0
|
||||||
lazyrepo: 0.0.0-alpha.22
|
lazyrepo: 0.0.0-alpha.26
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
|
@ -9456,7 +9456,7 @@ __metadata:
|
||||||
concurrently: ^7.4.0
|
concurrently: ^7.4.0
|
||||||
esbuild: ^0.16.7
|
esbuild: ^0.16.7
|
||||||
ip: ^1.1.8
|
ip: ^1.1.8
|
||||||
lazyrepo: 0.0.0-alpha.22
|
lazyrepo: 0.0.0-alpha.26
|
||||||
node-forge: ^1.3.1
|
node-forge: ^1.3.1
|
||||||
react: ^18.2.0
|
react: ^18.2.0
|
||||||
react-dom: ^18.2.0
|
react-dom: ^18.2.0
|
||||||
|
@ -12485,12 +12485,13 @@ __metadata:
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
"lazyrepo@npm:0.0.0-alpha.22":
|
"lazyrepo@npm:0.0.0-alpha.26":
|
||||||
version: 0.0.0-alpha.22
|
version: 0.0.0-alpha.26
|
||||||
resolution: "lazyrepo@npm:0.0.0-alpha.22"
|
resolution: "lazyrepo@npm:0.0.0-alpha.26"
|
||||||
dependencies:
|
dependencies:
|
||||||
"@sindresorhus/slugify": ^2.2.0
|
"@sindresorhus/slugify": ^2.2.0
|
||||||
cac: ^6.7.14
|
cac: ^6.7.14
|
||||||
|
ci-info: ^3.8.0
|
||||||
cross-spawn: ^7.0.3
|
cross-spawn: ^7.0.3
|
||||||
esbuild: ^0.17.15
|
esbuild: ^0.17.15
|
||||||
fast-glob: ^3.2.12
|
fast-glob: ^3.2.12
|
||||||
|
@ -12506,7 +12507,7 @@ __metadata:
|
||||||
zod-validation-error: ^1.3.0
|
zod-validation-error: ^1.3.0
|
||||||
bin:
|
bin:
|
||||||
lazy: bin.js
|
lazy: bin.js
|
||||||
checksum: b8c0390dd8086386fe46b6a1a3184288a9eeb26139b28893491f8eec418a4ea7560361b087363c1cd74a312af1913be68d4026a9071f73c4f381699c2573af39
|
checksum: 47a874c49a004cf6afa04894f5cb3e9e72b623dd66484b7a879a649ea1efdbe39785cfbdfb609eec54fed66486a0a16c587f90650756a73e0bc5fc5f2d253fc1
|
||||||
languageName: node
|
languageName: node
|
||||||
linkType: hard
|
linkType: hard
|
||||||
|
|
||||||
|
@ -17469,7 +17470,7 @@ __metadata:
|
||||||
assert: ^2.0.0
|
assert: ^2.0.0
|
||||||
esbuild: ^0.16.7
|
esbuild: ^0.16.7
|
||||||
fs-extra: ^11.1.0
|
fs-extra: ^11.1.0
|
||||||
lazyrepo: 0.0.0-alpha.22
|
lazyrepo: 0.0.0-alpha.26
|
||||||
lodash: ^4.17.21
|
lodash: ^4.17.21
|
||||||
mocha: ^9.1.1
|
mocha: ^9.1.1
|
||||||
nanoid: ^4.0.1
|
nanoid: ^4.0.1
|
||||||
|
|
|
@ -6,7 +6,7 @@ import { exec } from './lib/exec'
|
||||||
import { sortUnions } from './lib/sort-unions'
|
import { sortUnions } from './lib/sort-unions'
|
||||||
|
|
||||||
async function buildApi(sourcePackageDir: string) {
|
async function buildApi(sourcePackageDir: string) {
|
||||||
// this depends on `build:types` being run first, but we'll rely on turbo to
|
// this depends on `build-types` being run first, but we'll rely on turbo to
|
||||||
// make that happen.
|
// make that happen.
|
||||||
|
|
||||||
const relativeSourcePackageDir = path.relative(path.resolve(__dirname, '../..'), sourcePackageDir)
|
const relativeSourcePackageDir = path.relative(path.resolve(__dirname, '../..'), sourcePackageDir)
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { addJsExtensions } from './lib/add-extensions'
|
||||||
|
|
||||||
/** Prepares the package for publishing. the tarball in case it will be written to disk. */
|
/** Prepares the package for publishing. the tarball in case it will be written to disk. */
|
||||||
async function buildPackage({ sourcePackageDir }: { sourcePackageDir: string }) {
|
async function buildPackage({ sourcePackageDir }: { sourcePackageDir: string }) {
|
||||||
// this depends on `build:types` being run first, but we'll rely on turbo to
|
// this depends on `build-types` being run first, but we'll rely on turbo to
|
||||||
// make that happen.
|
// make that happen.
|
||||||
|
|
||||||
if (!existsSync(path.join(sourcePackageDir, 'src/index.ts'))) {
|
if (!existsSync(path.join(sourcePackageDir, 'src/index.ts'))) {
|
||||||
|
|
|
@ -25,8 +25,8 @@ const expectedPackageScripts = {
|
||||||
// published packages should have these scripts
|
// published packages should have these scripts
|
||||||
const expectedPublishedPackageScripts = {
|
const expectedPublishedPackageScripts = {
|
||||||
...expectedPackageScripts,
|
...expectedPackageScripts,
|
||||||
'build:package': tsScript('build-package.ts'),
|
'build-package': tsScript('build-package.ts'),
|
||||||
'build:api': tsScript('build-api.ts'),
|
'build-api': tsScript('build-api.ts'),
|
||||||
prepack: tsScript('prepack.ts'),
|
prepack: tsScript('prepack.ts'),
|
||||||
postpack: (packageDir: string) => scriptPath(packageDir, 'postpack.sh'),
|
postpack: (packageDir: string) => scriptPath(packageDir, 'postpack.sh'),
|
||||||
'pack-tarball': () => 'yarn pack',
|
'pack-tarball': () => 'yarn pack',
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
"glob": "^8.0.3",
|
"glob": "^8.0.3",
|
||||||
"is-ci": "^3.0.1",
|
"is-ci": "^3.0.1",
|
||||||
"kleur": "^4.1.5",
|
"kleur": "^4.1.5",
|
||||||
"lazyrepo": "0.0.0-alpha.22",
|
"lazyrepo": "0.0.0-alpha.26",
|
||||||
"prettier": "^2.8.7",
|
"prettier": "^2.8.7",
|
||||||
"recast": "^0.22.0",
|
"recast": "^0.22.0",
|
||||||
"rimraf": "^4.4.0",
|
"rimraf": "^4.4.0",
|
||||||
|
|
|
@ -12,7 +12,7 @@ export async function preparePackage({ sourcePackageDir }: { sourcePackageDir: s
|
||||||
|
|
||||||
const manifest = JSON.parse(readFileSync(path.join(sourcePackageDir, 'package.json'), 'utf8'))
|
const manifest = JSON.parse(readFileSync(path.join(sourcePackageDir, 'package.json'), 'utf8'))
|
||||||
|
|
||||||
execSync('yarn run -T lazy build:package', { cwd: sourcePackageDir, stdio: 'inherit' })
|
execSync('yarn run -T lazy build-package', { cwd: sourcePackageDir, stdio: 'inherit' })
|
||||||
|
|
||||||
// save package.json and reinstate it in postpack
|
// save package.json and reinstate it in postpack
|
||||||
copyFileSync(
|
copyFileSync(
|
||||||
|
|
Loading…
Reference in a new issue