Skip to content
This repository has been archived by the owner on Aug 7, 2018. It is now read-only.

Commit

Permalink
fix AMD loader package name
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Apr 27, 2015
1 parent 130b552 commit fe7aa8b
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 7 deletions.
5 changes: 4 additions & 1 deletion js/bin/aureooms-node-package-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ var config = pkg.config;
var data = fs.readFileSync(config, 'utf8');
var opt = JSON.parse(data);

pkg.build(opt);
var npmconfig = JSON.parse( fs.readFileSync("package.json", "utf8") );
opt.fullname = npmconfig.name ;

pkg.build(opt);
5 changes: 4 additions & 1 deletion js/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ var config = pkg.config;
var data = fs.readFileSync(config, 'utf8');
var opt = JSON.parse(data);

pkg.build(opt);
var npmconfig = JSON.parse( fs.readFileSync("package.json", "utf8") );
opt.fullname = npmconfig.name ;

pkg.build(opt);
6 changes: 4 additions & 2 deletions js/dist/pkg.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
var path = require('path');

var dflt = {
fullname: undefined,
name: undefined,
src: undefined,
out: undefined,
Expand All @@ -34,6 +35,7 @@
var namespace = opt.name.replace('-', '');

var recbuild = recbuild_t({
fullname: opt.fullname,
name: namespace,
rec: opt.rec,
flat: opt.flat
Expand Down Expand Up @@ -194,10 +196,10 @@
if (typeof exports === 'object') {
definition(exports);
} else if (typeof define === 'function' && define.amd) {
define('pkg', [], function () {
define('aureooms-node-package', [], function () {
return definition({});
});
} else if (typeof window === 'object' && typeof window.document === 'object') {
definition(window.pkg = {});
} else console.error('unable to detect type of module to define for pkg');
} else console.error('unable to detect type of module to define for aureooms-node-package');
})();
2 changes: 1 addition & 1 deletion js/dist/pkg.js.map

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

2 changes: 1 addition & 1 deletion js/dist/pkg.min.js

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

2 changes: 2 additions & 0 deletions js/src/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ var build = function(opt){
var path = require('path');

var dflt = {
fullname : undefined,
name : undefined,
src : undefined,
out : undefined,
Expand All @@ -26,6 +27,7 @@ var build = function(opt){
var namespace = opt.name.replace( '-' , '' ) ;

var recbuild = recbuild_t({
fullname : opt.fullname ,
name : namespace ,
rec : opt.rec ,
flat : opt.flat
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"auto"
],
"dependencies": {
"aureooms-node-recursive-build": "^1.1.2",
"aureooms-node-recursive-build": "^1.1.3",
"aureooms-node-recursive-require": "^1.0.3",
"babel-core": "^5.1.13",
"codeclimate-test-reporter": "^0.0.4",
Expand Down

0 comments on commit fe7aa8b

Please sign in to comment.