Skip to content

Commit

Permalink
chore(fix): Github runner killed
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed Nov 11, 2024
1 parent 8e1a186 commit 7522b29
Show file tree
Hide file tree
Showing 22 changed files with 30 additions and 27 deletions.
3 changes: 3 additions & 0 deletions build/templates/package.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import _ from 'lodash';
import sortPackageJson, { sortOrder } from 'sort-package-json';

sortOrder.splice(sortOrder.indexOf('style') + 1, 0, 'sass');
Expand Down Expand Up @@ -25,6 +26,8 @@ export const packageJson = (pkg: any) => {
homepage: 'https://www.strangeplanet.fr',
},
keywords: ['photosphere', 'panorama', 'threejs', ...(pkg.keywords || [])],
dependencies: _.pickBy(pkg.dependencies, (val, key) => !key.startsWith('@photo-sphere-viewer')),
peerDependencies: _.pickBy(pkg.dependencies, (val, key) => key.startsWith('@photo-sphere-viewer')),
};

if (pkg.psv.style) {
Expand Down
4 changes: 2 additions & 2 deletions cypress.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

import fs from 'fs';
import fs from 'fs-extra';
import registerCodeCoverageTasks from '@cypress/code-coverage/task';
import { defineConfig } from 'cypress';
// @ts-ignore
Expand All @@ -21,7 +21,7 @@ export default defineConfig({
setupNodeEvents(on, config) {
on = cypressOnFix(on);

fs.rmdirSync('.nyc_output', { recursive: true });
fs.removeSync('.nyc_output');

registerCodeCoverageTasks(on, config);
configureVisualRegression(on);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"npm-link": "turbo run npm-link --output-logs=new-only",
"doc:build": "turbo run build-doc",
"doc:serve": "turbo run serve-doc",
"ci:build": "turbo run lint build test",
"ci:e2e": "turbo run build instrument -- --env.E2E && node ./build/start-and-test.mjs \"watch --e2e\" \"e2e:run\"",
"ci:build": "turbo run lint build test --concurrency=100%",
"ci:e2e": "turbo run build instrument --concurrency=100% -- --env.E2E && node ./build/start-and-test.mjs \"watch --e2e\" \"e2e:run\"",
"ci:version": "set-versions --workspaces",
"ci:publish": "turbo run publish-dist --concurrency=1",
"e2e:open": "cypress open --e2e --browser=electron",
Expand Down
2 changes: 1 addition & 1 deletion packages/autorotate-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"virtual-tour",
"keypoint"
],
"peerDependencies": {
"dependencies": {
"@photo-sphere-viewer/core": "0.0.0"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/compass-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"main": "./src/index.ts",
"types": "./src/index.ts",
"peerDependencies": {
"dependencies": {
"@photo-sphere-viewer/core": "0.0.0"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cubemap-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"main": "./src/index.ts",
"types": "./src/index.ts",
"peerDependencies": {
"dependencies": {
"@photo-sphere-viewer/core": "0.0.0"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cubemap-tiles-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"main": "./src/index.ts",
"types": "./src/index.ts",
"peerDependencies": {
"dependencies": {
"@photo-sphere-viewer/core": "0.0.0",
"@photo-sphere-viewer/cubemap-adapter": "0.0.0"
},
Expand Down
5 changes: 3 additions & 2 deletions packages/cubemap-video-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"license": "MIT",
"main": "./src/index.ts",
"types": "./src/index.ts",
"peerDependencies": {
"@photo-sphere-viewer/core": "0.0.0"
"dependencies": {
"@photo-sphere-viewer/core": "0.0.0",
"@photo-sphere-viewer/video-plugin": "0.0.0"
},
"scripts": {
"build": "tsup",
Expand Down
2 changes: 1 addition & 1 deletion packages/equirectangular-tiles-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"main": "./src/index.ts",
"types": "./src/index.ts",
"peerDependencies": {
"dependencies": {
"@photo-sphere-viewer/core": "0.0.0"
},
"scripts": {
Expand Down
5 changes: 3 additions & 2 deletions packages/equirectangular-video-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
"license": "MIT",
"main": "./src/index.ts",
"types": "./src/index.ts",
"peerDependencies": {
"@photo-sphere-viewer/core": "0.0.0"
"dependencies": {
"@photo-sphere-viewer/core": "0.0.0",
"@photo-sphere-viewer/video-plugin": "0.0.0"
},
"scripts": {
"build": "tsup",
Expand Down
2 changes: 1 addition & 1 deletion packages/gallery-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"main": "./src/index.ts",
"types": "./src/index.ts",
"peerDependencies": {
"dependencies": {
"@photo-sphere-viewer/core": "0.0.0"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/gyroscope-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"main": "./src/index.ts",
"types": "./src/index.ts",
"peerDependencies": {
"dependencies": {
"@photo-sphere-viewer/core": "0.0.0"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/map-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"plan",
"cartography"
],
"peerDependencies": {
"dependencies": {
"@photo-sphere-viewer/core": "0.0.0"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/markers-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"polygon",
"green-screen"
],
"peerDependencies": {
"dependencies": {
"@photo-sphere-viewer/core": "0.0.0"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/overlays-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"video",
"green-screen"
],
"peerDependencies": {
"dependencies": {
"@photo-sphere-viewer/core": "0.0.0"
},
"scripts": {
Expand Down
4 changes: 1 addition & 3 deletions packages/plan-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@
"cartography"
],
"dependencies": {
"@photo-sphere-viewer/core": "0.0.0",
"leaflet": "^1.9.4"
},
"devDependencies": {
"@types/leaflet": "^1.9.8"
},
"peerDependencies": {
"@photo-sphere-viewer/core": "0.0.0"
},
"scripts": {
"build": "tsup",
"watch": "tsup --watch",
Expand Down
2 changes: 1 addition & 1 deletion packages/resolution-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"main": "./src/index.ts",
"types": "./src/index.ts",
"peerDependencies": {
"dependencies": {
"@photo-sphere-viewer/core": "0.0.0",
"@photo-sphere-viewer/settings-plugin": "0.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/settings-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"main": "./src/index.ts",
"types": "./src/index.ts",
"peerDependencies": {
"dependencies": {
"@photo-sphere-viewer/core": "0.0.0"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/stereo-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"main": "./src/index.ts",
"types": "./src/index.ts",
"peerDependencies": {
"dependencies": {
"@photo-sphere-viewer/core": "0.0.0",
"@photo-sphere-viewer/gyroscope-plugin": "0.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/video-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"main": "./src/index.ts",
"types": "./src/index.ts",
"peerDependencies": {
"dependencies": {
"@photo-sphere-viewer/core": "0.0.0"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/virtual-tour-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"main": "./src/index.ts",
"types": "./src/index.ts",
"peerDependencies": {
"dependencies": {
"@photo-sphere-viewer/core": "0.0.0"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/visible-range-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "MIT",
"main": "./src/index.ts",
"types": "./src/index.ts",
"peerDependencies": {
"dependencies": {
"@photo-sphere-viewer/core": "0.0.0"
},
"scripts": {
Expand Down

0 comments on commit 7522b29

Please sign in to comment.