Skip to content

Commit

Permalink
fix lint error, rename prepare-package.js to .cjs - require undefined…
Browse files Browse the repository at this point in the history
… in js files
  • Loading branch information
jens-meisner committed Nov 21, 2024
1 parent e7bcd6e commit a0d2e51
Show file tree
Hide file tree
Showing 44 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion packages/ckeditor5-bbcode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"license": "Apache-2.0",
"scripts": {
"build": "tsc --project ./tsconfig.release.json",
"postbuild": "node prepare-package.js && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"clean": "pnpm clean:src && pnpm clean:dist",
"clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"",
"clean:dist": "rimraf ./dist",
Expand Down
2 changes: 1 addition & 1 deletion packages/ckeditor5-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"",
"clean:dist": "rimraf ./dist",
"build": "tsc --project ./tsconfig.release.json",
"postbuild": "node prepare-package.js && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"jest": "jest --passWithNoTests",
"jest:coverage": "jest --collect-coverage --passWithNoTests",
"npm-check-updates": "npm-check-updates --upgrade"
Expand Down
2 changes: 1 addition & 1 deletion packages/ckeditor5-core-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"",
"clean:dist": "rimraf ./dist",
"build": "tsc --project ./tsconfig.release.json",
"postbuild": "node prepare-package.js && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"jest": "jest --passWithNoTests",
"jest:coverage": "jest --collect-coverage --passWithNoTests",
"npm-check-updates": "npm-check-updates --upgrade"
Expand Down
2 changes: 1 addition & 1 deletion packages/ckeditor5-coremedia-blocklist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"license": "Apache-2.0",
"scripts": {
"build": "tsc --project ./tsconfig.release.json && copyfiles -u 1 theme/* theme/**/* dist/theme",
"postbuild": "node prepare-package.js && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"clean": "pnpm clean:src && pnpm clean:dist",
"clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"",
"clean:dist": "rimraf ./dist",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"license": "Apache-2.0",
"scripts": {
"build": "tsc --project ./tsconfig.release.json && copyfiles -u 1 theme/* theme/**/* dist/theme",
"postbuild": "node prepare-package.js && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"clean": "pnpm clean:src && pnpm clean:dist",
"clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"",
"clean:dist": "rimraf ./dist",
Expand Down
2 changes: 1 addition & 1 deletion packages/ckeditor5-coremedia-content/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"",
"clean:dist": "rimraf ./dist",
"build": "tsc --project ./tsconfig.release.json",
"postbuild": "node prepare-package.js && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"jest": "jest --passWithNoTests",
"jest:coverage": "jest --collect-coverage --passWithNoTests",
"npm-check-updates": "npm-check-updates --upgrade"
Expand Down
2 changes: 1 addition & 1 deletion packages/ckeditor5-coremedia-differencing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"",
"clean:dist": "rimraf ./dist",
"build": "tsc --project ./tsconfig.release.json",
"postbuild": "node prepare-package.js && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"jest": "jest --passWithNoTests",
"jest:coverage": "jest --collect-coverage",
"npm-check-updates": "npm-check-updates --upgrade"
Expand Down
2 changes: 1 addition & 1 deletion packages/ckeditor5-coremedia-images/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"license": "Apache-2.0",
"scripts": {
"build": "tsc --project ./tsconfig.release.json && copyfiles -u 1 theme/* theme/**/* dist/theme",
"postbuild": "node prepare-package.js && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"clean": "pnpm clean:src && pnpm clean:dist",
"clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"",
"clean:dist": "rimraf ./dist",
Expand Down
2 changes: 1 addition & 1 deletion packages/ckeditor5-coremedia-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"license": "Apache-2.0",
"scripts": {
"build": "tsc --project ./tsconfig.release.json && copyfiles -u 1 theme/* theme/**/* dist/theme",
"postbuild": "node prepare-package.js && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"clean": "pnpm clean:src && pnpm clean:dist",
"clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"",
"clean:dist": "rimraf ./dist",
Expand Down
2 changes: 1 addition & 1 deletion packages/ckeditor5-coremedia-richtext-support/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"license": "Apache-2.0",
"scripts": {
"build": "tsc --project ./tsconfig.release.json",
"postbuild": "node prepare-package.js && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"clean": "pnpm clean:src && pnpm clean:dist",
"clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"",
"clean:dist": "rimraf ./dist",
Expand Down
2 changes: 1 addition & 1 deletion packages/ckeditor5-coremedia-richtext/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"license": "Apache-2.0",
"scripts": {
"build": "tsc --project ./tsconfig.release.json",
"postbuild": "node prepare-package.js && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"clean": "pnpm clean:src && pnpm clean:dist",
"clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"",
"clean:dist": "rimraf ./dist",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"license": "Apache-2.0",
"scripts": {
"build": "tsc --project ./tsconfig.release.json",
"postbuild": "node prepare-package.js && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"clean": "pnpm clean:src && pnpm clean:dist",
"clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"",
"clean:dist": "rimraf ./dist",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
],
"scripts": {
"build": "tsc --project ./tsconfig.release.json",
"postbuild": "node prepare-package.js && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"clean": "pnpm clean:src && pnpm clean:dist",
"clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"",
"clean:dist": "rimraf ./dist",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"license": "Apache-2.0",
"scripts": {
"build": "tsc --project ./tsconfig.release.json",
"postbuild": "node prepare-package.js && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"clean": "pnpm clean:src && pnpm clean:dist",
"clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"",
"clean:dist": "rimraf ./dist",
Expand Down
2 changes: 1 addition & 1 deletion packages/ckeditor5-data-facade/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"license": "Apache-2.0",
"scripts": {
"build": "tsc --project ./tsconfig.release.json",
"postbuild": "node prepare-package.js && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"clean": "pnpm clean:src && pnpm clean:dist",
"clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"",
"clean:dist": "rimraf ./dist",
Expand Down
2 changes: 1 addition & 1 deletion packages/ckeditor5-dataprocessor-support/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
],
"scripts": {
"build": "tsc --project ./tsconfig.release.json",
"postbuild": "node prepare-package.js && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"clean": "pnpm clean:src && pnpm clean:dist",
"clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"",
"clean:dist": "rimraf ./dist",
Expand Down
2 changes: 1 addition & 1 deletion packages/ckeditor5-dialog-visibility/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"license": "Apache-2.0",
"scripts": {
"build": "tsc --project ./tsconfig.release.json",
"postbuild": "node prepare-package.js && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"clean": "pnpm clean:src && pnpm clean:dist",
"clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"",
"clean:dist": "rimraf ./dist",
Expand Down
2 changes: 1 addition & 1 deletion packages/ckeditor5-dom-converter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"",
"clean:dist": "rimraf ./dist",
"build": "tsc --project ./tsconfig.release.json",
"postbuild": "node prepare-package.js && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"jest": "jest",
"jest:coverage": "jest --collect-coverage"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ckeditor5-dom-support/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"",
"clean:dist": "rimraf ./dist",
"build": "tsc --project ./tsconfig.release.json",
"postbuild": "node prepare-package.js && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"jest": "jest --passWithNoTests",
"jest:coverage": "jest --collect-coverage"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/ckeditor5-font-mapper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
},
"scripts": {
"build": "tsc --project ./tsconfig.release.json",
"postbuild": "node prepare-package.js && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"clean": "pnpm clean:src && pnpm clean:dist",
"clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"",
"clean:dist": "rimraf ./dist",
Expand Down
2 changes: 1 addition & 1 deletion packages/ckeditor5-link-common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"",
"clean:dist": "rimraf ./dist",
"build": "tsc --project ./tsconfig.release.json",
"postbuild": "node prepare-package.js && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"jest": "jest --passWithNoTests",
"jest:coverage": "jest --collect-coverage --passWithNoTests",
"npm-check-updates": "npm-check-updates --upgrade"
Expand Down
2 changes: 1 addition & 1 deletion packages/ckeditor5-logging/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"clean:src": "rimraf --glob \"src/**/*.@(js|js.map|d.ts|d.ts.map)\"",
"clean:dist": "rimraf ./dist",
"build": "tsc --project ./tsconfig.release.json",
"postbuild": "node prepare-package.js && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"postbuild": "node prepare-package.cjs && copyfiles ./README.md dist && copyfiles -u 1 './src/**/*.ts' ./dist/src",
"jest": "jest",
"jest:coverage": "jest --collect-coverage",
"npm-check-updates": "npm-check-updates --upgrade"
Expand Down

0 comments on commit a0d2e51

Please sign in to comment.