Skip to content

Commit

Permalink
1.11.3
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp committed Mar 29, 2018
1 parent 08a9c9b commit 8fcc529
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "steal",
"description": "Gets JavaScript.",
"version": "1.11.2",
"version": "1.11.3",
"author": {
"name": "Bitovi",
"email": "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion steal-sans-promises.production.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion steal.production.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 10 additions & 3 deletions test/ext/npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ exports.translate = function(load){
return "define([]);";
}

var resavePackageInfo = isNode && loader.isEnv &&
!loader.isEnv("production");
var resavePackageInfo = isNode && !loader.isEnv("production");
var isBuild = loader.isPlatform("build");

var prevPackages = loader.npmContext && loader.npmContext.pkgInfo;
var versions = loader.npmContext && loader.npmContext.versions;
Expand All @@ -48,6 +48,7 @@ exports.translate = function(load){
crawl: crawl,
convert: convert,
resavePackageInfo: resavePackageInfo,
applyBuildConfig: isBuild,
forwardSlashMap: {},
// default file structure for npm 3 and higher
isFlatFileStructure: true
Expand Down Expand Up @@ -95,14 +96,20 @@ exports.translate = function(load){
}
pkg = utils.json.transform(loader, load, pkg);

var conv = convert.steal(context, pkg, pkg.steal, index === 0);

// When packages load, apply their configuration
convert.updateConfigOnPackageLoad(conv, resavePackageInfo,
true, isBuild);

packages.push({
name: pkg.name,
version: pkg.version,
fileUrl: utils.path.isRelative(pkg.fileUrl) ?
pkg.fileUrl :
utils.relativeURI(context.loader.baseURL, pkg.fileUrl),
main: pkg.main,
steal: convert.steal(context, pkg, pkg.steal, index === 0),
steal: conv.steal,
globalBrowser: convert.browser(pkg, pkg.globalBrowser),
browser: convert.browser(pkg, pkg.browser || pkg.browserify),
jspm: convert.jspm(pkg, pkg.jspm),
Expand Down

0 comments on commit 8fcc529

Please sign in to comment.