"ender"
],
"main": "./moment.js",
- "jsnext:main": "./src/moment.js",
- "module": "./src/moment.js",
+ "jsnext:main": "./dist/moment.js",
+ "module": "./dist/moment.js",
"typings": "./moment.d.ts",
"typesVersions": {
">=3.1": {
],
dest: '.',
});
+ grunt.config('copy.esm', {
+ expand: true,
+ cwd: 'build/esm',
+ src: ['moment.js'],
+ dest: 'dist',
+ });
+ grunt.config('copy.esm-locales', {
+ expand: true,
+ cwd: 'src',
+ src: ['locale/*.js'],
+ dest: 'dist',
+ });
- grunt.registerTask('update-index', ['copy:index-files']);
+ grunt.registerTask('update-index', [
+ 'copy:index-files',
+ 'copy:esm',
+ 'copy:esm-locales',
+ ]);
};