Skip to content

Commit

Permalink
sorted deps of all our @pixi-spine deps
Browse files Browse the repository at this point in the history
  • Loading branch information
miltoncandelero committed Aug 6, 2022
1 parent e8bfd19 commit 9e70dd9
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 14 deletions.
12 changes: 8 additions & 4 deletions bundles/all-3.8/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { main } = require('@pixi-spine/rollup-config/main');
const pkg = require('./package.json');

const results = main({
globals: {
Expand All @@ -9,10 +10,13 @@ const results = main({
},
});

// TODO: get sorted deps of all our @pixi-spine deps

const umdDeps = ['@pixi/constants', '@pixi/core', '@pixi/display', '@pixi/graphics',
'@pixi/loaders', '@pixi/math', '@pixi/mesh-extras', '@pixi/sprite', '@pixi/utils'];
// Find all the peer deps. Note: This assumes we have only two levels of peer deps.
let umdDeps = [];
const deps = Object.keys(pkg.dependencies || {});
for (let dep of deps) {
const p = require(`${dep}/package.json`);
umdDeps = umdDeps.concat(Object.keys(p.peerDependencies || {}));
}

const license1 = 'is licensed under the MIT License.\n * http://www.opensource.org/licenses/mit-license';
const licenseSpine = 'is licensed under SPINE-LICENSE\n * http://esotericsoftware.com/spine-runtimes-license';
Expand Down
11 changes: 8 additions & 3 deletions bundles/all-4.0/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { main } = require('@pixi-spine/rollup-config/main');
const pkg = require('./package.json');

const results = main({
globals: {
Expand All @@ -9,10 +10,14 @@ const results = main({
},
});

// TODO: get sorted deps of all our @pixi-spine deps
// Find all the peer deps. Note: This assumes we have only two levels of peer deps.
let umdDeps = [];
const deps = Object.keys(pkg.dependencies || {});
for (let dep of deps) {
const p = require(`${dep}/package.json`);
umdDeps = umdDeps.concat(Object.keys(p.peerDependencies || {}));
}

const umdDeps = ['@pixi/constants', '@pixi/core', '@pixi/display', '@pixi/graphics',
'@pixi/loaders', '@pixi/math', '@pixi/mesh-extras', '@pixi/sprite', '@pixi/utils'];

const license1 = 'is licensed under the MIT License.\n * http://www.opensource.org/licenses/mit-license';
const licenseSpine = 'is licensed under SPINE-LICENSE\n * http://esotericsoftware.com/spine-runtimes-license';
Expand Down
12 changes: 8 additions & 4 deletions bundles/all-4.1/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { main } = require('@pixi-spine/rollup-config/main');
const pkg = require('./package.json');

const results = main({
globals: {
Expand All @@ -9,10 +10,13 @@ const results = main({
},
});

// TODO: get sorted deps of all our @pixi-spine deps

const umdDeps = ['@pixi/constants', '@pixi/core', '@pixi/display', '@pixi/graphics',
'@pixi/loaders', '@pixi/math', '@pixi/mesh-extras', '@pixi/sprite', '@pixi/utils'];
// Find all the peer deps. Note: This assumes we have only two levels of peer deps.
let umdDeps = [];
const deps = Object.keys(pkg.dependencies || {});
for (let dep of deps) {
const p = require(`${dep}/package.json`);
umdDeps = umdDeps.concat(Object.keys(p.peerDependencies || {}));
}

const license1 = 'is licensed under the MIT License.\n * http://www.opensource.org/licenses/mit-license';
const licenseSpine = 'is licensed under SPINE-LICENSE\n * http://esotericsoftware.com/spine-runtimes-license';
Expand Down
11 changes: 8 additions & 3 deletions bundles/pixi-spine/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const { main } = require('@pixi-spine/rollup-config/main');
const pkg = require('./package.json');

const results = main({
globals: {
Expand All @@ -11,10 +12,14 @@ const results = main({
},
});

// TODO: get sorted deps of all our @pixi-spine deps
// Find all the peer deps. Note: This assumes we have only two levels of peer deps.
let umdDeps = [];
const deps = Object.keys(pkg.dependencies || {});
for (let dep of deps) {
const p = require(`${dep}/package.json`);
umdDeps = umdDeps.concat(Object.keys(p.peerDependencies || {}));
}

const umdDeps = ['@pixi/constants', '@pixi/core', '@pixi/display', '@pixi/graphics',
'@pixi/loaders', '@pixi/math', '@pixi/mesh-extras', '@pixi/sprite', '@pixi/utils'];

const license1 = 'is licensed under the MIT License.\n * http://www.opensource.org/licenses/mit-license';
const licenseSpine = 'is licensed under SPINE-LICENSE\n * http://esotericsoftware.com/spine-runtimes-license';
Expand Down

0 comments on commit 9e70dd9

Please sign in to comment.