[go: up one dir, main page]

Skip to content

Commit

Permalink
fix: use .cjs file extensions for CJS versions (#701)
Browse files Browse the repository at this point in the history
* fix: use .cjs file extensions for CJS versions

* fix: use a single .cjs
  • Loading branch information
Princesseuh authored Mar 31, 2023
1 parent ee1fe60 commit 49b7fb6
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"name": "emmet",
"version": "2.4.0",
"description": "Emmet — the essential toolkit for web-developers",
"main": "./dist/emmet.cjs.js",
"main": "./dist/emmet.cjs",
"module": "./dist/emmet.es.js",
"types": "./dist/src/index.d.ts",
"type": "module",
"exports": {
"import": "./dist/emmet.es.js",
"require": "./dist/emmet.cjs.js"
"require": "./dist/emmet.cjs"
},
"scripts": {
"build": "rollup -c",
Expand Down
4 changes: 2 additions & 2 deletions packages/abbreviation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"name": "@emmetio/abbreviation",
"version": "2.3.0",
"description": "Emmet standalone abbreviation parser",
"main": "./dist/index.cjs.js",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"type": "module",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs.js"
"require": "./dist/index.cjs"
},
"scripts": {
"test": "mocha",
Expand Down
2 changes: 1 addition & 1 deletion packages/abbreviation/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
format: 'cjs',
sourcemap: true,
exports: 'named',
file: './dist/index.cjs.js'
file: './dist/index.cjs'
}, {
format: 'es',
sourcemap: true,
Expand Down
4 changes: 2 additions & 2 deletions packages/css-abbreviation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"name": "@emmetio/css-abbreviation",
"version": "2.1.5",
"description": "Parses Emmet CSS abbreviation into AST tree",
"main": "./dist/index.cjs.js",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"type": "module",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.cjs.js"
"require": "./dist/index.cjs"
},
"scripts": {
"test": "mocha",
Expand Down
2 changes: 1 addition & 1 deletion packages/css-abbreviation/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
plugins: [typescript()],
output: [{
format: 'cjs',
file: 'dist/index.cjs.js',
file: 'dist/index.cjs',
sourcemap: true,
exports: 'named',
}, {
Expand Down
2 changes: 1 addition & 1 deletion packages/scanner/.gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/scanner.js
/scanner.es.js
/scanner.cjs.js
/scanner.cjs
/*.d.ts
/*.map
4 changes: 2 additions & 2 deletions packages/scanner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
"name": "@emmetio/scanner",
"version": "1.0.1",
"description": "Scans given text character-by-character",
"main": "./scanner.cjs.js",
"main": "./scanner.cjs",
"module": "./scanner.js",
"types": "./scanner.d.ts",
"type": "module",
"exports": {
"import": "./scanner.js",
"require": "./scanner.cjs.js"
"require": "./scanner.cjs"
},
"scripts": {
"test": "mocha",
Expand Down
2 changes: 1 addition & 1 deletion packages/scanner/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default {
format: 'cjs',
exports: 'named',
sourcemap: true,
file: './scanner.cjs.js'
file: './scanner.cjs'
}, {
format: 'es',
sourcemap: true,
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {
format: 'es',
sourcemap: true
}, {
file: './dist/emmet.cjs.js',
file: './dist/emmet.cjs',
format: 'cjs',
exports: 'named',
sourcemap: true
Expand Down

0 comments on commit 49b7fb6

Please sign in to comment.