Skip to content

Commit

Permalink
feat(scripts)!: remove iief and use mjs and cjs extensions and use ad…
Browse files Browse the repository at this point in the history
…ditional compression
  • Loading branch information
MrWook committed Sep 30, 2024
1 parent 4144c2d commit 4caf5e0
Show file tree
Hide file tree
Showing 21 changed files with 132 additions and 121 deletions.
7 changes: 3 additions & 4 deletions packages/languages/ar/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@zxcvbn-ts/language-ar",
"version": "4.0.0-beta.1",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"sideEffects": false,
"description": "The Arabic language package for zxcvbn-ts",
Expand All @@ -27,7 +27,6 @@
"arabic"
],
"dependencies": {
"@alttiri/base85": "^1.8.0",
"fflate": "^0.8.2"
"@zxcvbn-ts/dictionary-compression": "4.0.0-beta.1"
}
}
7 changes: 3 additions & 4 deletions packages/languages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@zxcvbn-ts/language-common",
"version": "4.0.0-beta.1",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"sideEffects": false,
"description": "The common language package for zxcvbn-ts",
Expand All @@ -27,7 +27,6 @@
"common"
],
"dependencies": {
"@alttiri/base85": "^1.8.0",
"fflate": "^0.8.2"
"@zxcvbn-ts/dictionary-compression": "4.0.0-beta.1"
}
}
7 changes: 3 additions & 4 deletions packages/languages/cs/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@zxcvbn-ts/language-cs",
"version": "4.0.0-beta.1",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"sideEffects": false,
"description": "The Czech language package for zxcvbn-ts",
Expand All @@ -27,7 +27,6 @@
"czech"
],
"dependencies": {
"@alttiri/base85": "^1.8.0",
"fflate": "^0.8.2"
"@zxcvbn-ts/dictionary-compression": "4.0.0-beta.1"
}
}
7 changes: 3 additions & 4 deletions packages/languages/da-dk/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@zxcvbn-ts/language-da-dk",
"version": "4.0.0-beta.1",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"sideEffects": false,
"description": "The Danish language package for zxcvbn-ts",
Expand All @@ -27,7 +27,6 @@
"danish"
],
"dependencies": {
"@alttiri/base85": "^1.8.0",
"fflate": "^0.8.2"
"@zxcvbn-ts/dictionary-compression": "4.0.0-beta.1"
}
}
7 changes: 3 additions & 4 deletions packages/languages/de/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@zxcvbn-ts/language-de",
"version": "4.0.0-beta.1",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"sideEffects": false,
"description": "The German language package for zxcvbn-ts",
Expand All @@ -27,7 +27,6 @@
"german"
],
"dependencies": {
"@alttiri/base85": "^1.8.0",
"fflate": "^0.8.2"
"@zxcvbn-ts/dictionary-compression": "4.0.0-beta.1"
}
}
7 changes: 3 additions & 4 deletions packages/languages/en/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@zxcvbn-ts/language-en",
"version": "4.0.0-beta.1",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"sideEffects": false,
"description": "The English language package for zxcvbn-ts",
Expand All @@ -27,7 +27,6 @@
"english"
],
"dependencies": {
"@alttiri/base85": "^1.8.0",
"fflate": "^0.8.2"
"@zxcvbn-ts/dictionary-compression": "4.0.0-beta.1"
}
}
7 changes: 3 additions & 4 deletions packages/languages/es-es/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@zxcvbn-ts/language-es-es",
"version": "4.0.0-beta.1",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"sideEffects": false,
"description": "The European Spanish language package for zxcvbn-ts",
Expand All @@ -28,7 +28,6 @@
"spain"
],
"dependencies": {
"@alttiri/base85": "^1.8.0",
"fflate": "^0.8.2"
"@zxcvbn-ts/dictionary-compression": "4.0.0-beta.1"
}
}
7 changes: 3 additions & 4 deletions packages/languages/fi/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@zxcvbn-ts/language-fi",
"version": "4.0.0-beta.1",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"sideEffects": false,
"description": "The Finnish language package for zxcvbn-ts",
Expand All @@ -27,7 +27,6 @@
"finnish"
],
"dependencies": {
"@alttiri/base85": "^1.8.0",
"fflate": "^0.8.2"
"@zxcvbn-ts/dictionary-compression": "4.0.0-beta.1"
}
}
7 changes: 3 additions & 4 deletions packages/languages/fr/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@zxcvbn-ts/language-fr",
"version": "4.0.0-beta.1",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"sideEffects": false,
"description": "The French language package for zxcvbn-ts",
Expand All @@ -27,7 +27,6 @@
"french"
],
"dependencies": {
"@alttiri/base85": "^1.8.0",
"fflate": "^0.8.2"
"@zxcvbn-ts/dictionary-compression": "4.0.0-beta.1"
}
}
7 changes: 3 additions & 4 deletions packages/languages/id/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@zxcvbn-ts/language-id",
"version": "4.0.0-beta.1",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"sideEffects": false,
"description": "The Indonesia language package for zxcvbn-ts",
Expand All @@ -27,7 +27,6 @@
"indonesia"
],
"dependencies": {
"@alttiri/base85": "^1.8.0",
"fflate": "^0.8.2"
"@zxcvbn-ts/dictionary-compression": "4.0.0-beta.1"
}
}
7 changes: 3 additions & 4 deletions packages/languages/it/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@zxcvbn-ts/language-it",
"version": "4.0.0-beta.1",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"sideEffects": false,
"description": "The Italian language package for zxcvbn-ts",
Expand All @@ -27,7 +27,6 @@
"italian"
],
"dependencies": {
"@alttiri/base85": "^1.8.0",
"fflate": "^0.8.2"
"@zxcvbn-ts/dictionary-compression": "4.0.0-beta.1"
}
}
7 changes: 3 additions & 4 deletions packages/languages/ja/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@zxcvbn-ts/language-ja",
"version": "4.0.0-beta.1",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"sideEffects": false,
"description": "The Japanese language package for zxcvbn-ts",
Expand All @@ -27,7 +27,6 @@
"japanese"
],
"dependencies": {
"@alttiri/base85": "^1.8.0",
"fflate": "^0.8.2"
"@zxcvbn-ts/dictionary-compression": "4.0.0-beta.1"
}
}
7 changes: 3 additions & 4 deletions packages/languages/nl-be/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@zxcvbn-ts/language-nl-be",
"version": "4.0.0-beta.1",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"sideEffects": false,
"description": "The Dutch Belgian language package for zxcvbn-ts",
Expand All @@ -28,7 +28,6 @@
"belgium"
],
"dependencies": {
"@alttiri/base85": "^1.8.0",
"fflate": "^0.8.2"
"@zxcvbn-ts/dictionary-compression": "4.0.0-beta.1"
}
}
7 changes: 3 additions & 4 deletions packages/languages/pl/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@zxcvbn-ts/language-pl",
"version": "4.0.0-beta.1",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"sideEffects": false,
"description": "The Polish language package for zxcvbn-ts",
Expand All @@ -29,7 +29,6 @@
"pl"
],
"dependencies": {
"@alttiri/base85": "^1.8.0",
"fflate": "^0.8.2"
"@zxcvbn-ts/dictionary-compression": "4.0.0-beta.1"
}
}
7 changes: 3 additions & 4 deletions packages/languages/pt-br/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@zxcvbn-ts/language-pt-br",
"version": "4.0.0-beta.1",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"sideEffects": false,
"description": "The Brazilian portuguese language package for zxcvbn-ts",
Expand Down Expand Up @@ -31,7 +31,6 @@
"ptbr"
],
"dependencies": {
"@alttiri/base85": "^1.8.0",
"fflate": "^0.8.2"
"@zxcvbn-ts/dictionary-compression": "4.0.0-beta.1"
}
}
18 changes: 16 additions & 2 deletions packages/libraries/dictionaryCompression/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
{
"name": "@zxcvbn-ts/dictionary-compression",
"version": "4.0.0-beta.1",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"type": "commonjs",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.cjs"
},
"default": "./dist/index.cjs"
}
},
"description": "dictionary-compression helper for zxcvbn-ts language packages",
"license": "MIT",
"homepage": "https://github.com/zxcvbn-ts/zxcvbn",
Expand Down
4 changes: 2 additions & 2 deletions packages/libraries/main/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@zxcvbn-ts/core",
"version": "4.0.0-beta.1",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"description": "Realistic password strength estimation written in typescript",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions packages/libraries/pwned/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@zxcvbn-ts/matcher-pwned",
"version": "4.0.0-beta.1",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"description": "HaveIBeenPwned Matcher for zxcvbn-ts",
"license": "MIT",
Expand Down
Loading

0 comments on commit 4caf5e0

Please sign in to comment.