]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Publish Meteor package from meteor directory to fix #3531.
authorBen Newman <ben@meteor.com>
Thu, 27 Oct 2016 18:48:54 +0000 (11:48 -0700)
committerIskren Chernev <iskren.chernev@gmail.com>
Sun, 6 Nov 2016 09:13:43 +0000 (01:13 -0800)
Gruntfile.js
meteor/moment.js [new symlink]
meteor/package.js

index 4e97299e7934f9a3613f9aac83abe1cbc179dc6a..65212116690970db4d747a93c4a2faa30186d26d 100644 (file)
@@ -159,24 +159,15 @@ module.exports = function (grunt) {
         },
         exec: {
             'meteor-init': {
-                command: [
-                    // Make sure Meteor is installed, per https://meteor.com/install.
-                    // The curl'ed script is safe; takes 2 minutes to read source & check.
-                    'type meteor >/dev/null 2>&1 || { curl https://install.meteor.com/ | sh; }',
-                    // Meteor expects package.js to be in the root directory of
-                    // the checkout, but we already have a package.js for Dojo
-                    'mv package.js package.dojo && cp meteor/package.js .'
-                ].join(';')
-            },
-            'meteor-cleanup': {
-                // remove build files and restore Dojo's package.js
-                command: 'rm -rf ".build.*" versions.json; mv package.dojo package.js'
+                // Make sure Meteor is installed, per https://meteor.com/install.
+                // The curl'ed script is safe; takes 2 minutes to read source & check.
+                command: 'type meteor >/dev/null 2>&1 || { curl https://install.meteor.com/ | sh; }'
             },
             'meteor-test': {
-                command: 'spacejam --mongo-url mongodb:// test-packages ./'
+                command: 'spacejam --mongo-url mongodb:// test-packages ./meteor'
             },
             'meteor-publish': {
-                command: 'meteor publish'
+                command: 'cd meteor && meteor publish'
             },
             'typescript-test': {
                 command: 'node_modules/.bin/tsc --project typing-tests'
diff --git a/meteor/moment.js b/meteor/moment.js
new file mode 120000 (symlink)
index 0000000..2c0c3f2
--- /dev/null
@@ -0,0 +1 @@
+../moment.js
\ No newline at end of file
index 3b8af061ea87c97074bb93d6324855bbd9dcb3c0..14b01537bf5c1d345822ca1733cf40f1cbc17cd3 100644 (file)
@@ -6,7 +6,7 @@ var packageName = 'momentjs:moment';  // https://atmospherejs.com/momentjs/momen
 Package.describe({
   name: packageName,
   summary: 'Moment.js (official): parse, validate, manipulate, and display dates - official Meteor packaging',
-  version: '2.15.2',
+  version: '2.15.3',
   git: 'https://github.com/moment/moment.git'
 });
 
@@ -15,7 +15,7 @@ Package.onUse(function (api) {
   api.export('moment');
   api.addFiles([
     'moment.js',
-    'meteor/export.js'
+    'export.js'
   ]);
 });
 
@@ -23,5 +23,5 @@ Package.onTest(function (api) {
   api.use(packageName);
   api.use('tinytest');
 
-  api.addFiles('meteor/test.js');
+  api.addFiles('test.js');
 });