Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace mjs extension usage #1805

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/turf-difference/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"version": "6.0.0",
"description": "turf difference module",
"main": "index",
"module": "index.mjs",
"module": "index.es.js",
"types": "index.d.ts",
"files": [
"index.js",
"index.mjs",
"index.es.js",
"index.d.ts"
],
"scripts": {
"pretest": "rollup -f cjs -o index.js index.mjs",
"pretest": "rollup -f cjs -o index.js index.es.js",
"test": "node test.js",
"bench": "node bench.js",
"docs": "node ../../scripts/generate-readmes"
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions packages/turf-meta/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"version": "6.0.1",
"description": "turf meta module",
"main": "index",
"module": "index.mjs",
"module": "index.es.js",
"types": "index.d.ts",
"files": [
"index.js",
"index.mjs",
"index.es.js",
"index.d.ts"
],
"scripts": {
"pretest": "rollup -f cjs -o index.js index.mjs",
"pretest": "rollup -f cjs -o index.js index.es.js",
"test": "node test.js",
"bench": "node bench.js",
"docs": "node ../../scripts/generate-readmes"
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions packages/turf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,20 @@
"version": "6.0.0",
"description": "a JavaScript library for performing geospatial operations with GeoJSON",
"main": "turf",
"module": "turf.mjs",
"module": "turf.es.js",
"browser": "turf.min.js",
"types": "index.d.ts",
"files": [
"index.js",
"index.mjs",
"index.es.js",
"index.d.ts",
"turf.js",
"turf.mjs",
"turf.es.js",
"turf.min.js"
],
"scripts": {
"prepare": "rollup -c rollup.config.js",
"pretest": "rollup -f cjs -o index.js index.mjs",
"pretest": "rollup -f cjs -o index.js index.es.js",
"test": "node test.js",
"posttest": "node test.example.js"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/turf/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import commonjs from 'rollup-plugin-commonjs'
import uglify from 'rollup-plugin-uglify'

const pckg = require('./package')
const input = 'index.mjs'
const input = 'index.es.js'

export default [{
input,
Expand Down
2 changes: 1 addition & 1 deletion packages/turf/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ test('turf -- external files must be in the lib folder', t => {
case 'main.es.js':
case 'index.js':
case 'index.ts':
case 'index.mjs':
case 'index.es.js':
case 'index.d.ts':
case 'lib':
break;
Expand Down