diff --git a/.gitignore b/.gitignore index 0635390..5179e0d 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ dist dev.db *.db *.env +.npmrc diff --git a/package-lock.json b/package-lock.json index aeb4f15..5cfbeb1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "sluggenerator", - "version": "1.0.0", + "version": "1.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "sluggenerator", - "version": "1.0.0", + "version": "1.0.1", "license": "ISC", "devDependencies": { "@eslint/js": "^10.0.1", @@ -2900,7 +2900,6 @@ "resolved": "https://registry.npmjs.org/tsc-alias/-/tsc-alias-1.8.16.tgz", "integrity": "sha512-QjCyu55NFyRSBAl6+MTFwplpFcnm2Pq01rR/uxfqJoLMm6X3O14KEGtaSDZpJYaE1bJBGDjD0eSuiIWPe2T58g==", "dev": true, - "license": "MIT", "dependencies": { "chokidar": "^3.5.3", "commander": "^9.0.0", diff --git a/package.json b/package.json index d52b1a4..333bdde 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "sluggenerator", - "version": "1.0.0", + "name": "@m0az/sluggenerator", + "version": "1.0.1", "description": "a simple library for modern consumer to generate clean slugs.", "exports": { ".": { @@ -25,7 +25,6 @@ "keywords": [], "author": "", "license": "ISC", - "type": "module", "bugs": { "url": "https://github.com/M0aZzZ/slugGenerator/issues" }, @@ -41,5 +40,6 @@ "typescript": "^5.9.3", "typescript-eslint": "^8.56.1", "vitest": "^4.0.18" - } + }, + "main": "./dist/index.js" } diff --git a/sluggenerator-1.0.0/package/LICENSE b/sluggenerator-1.0.0/package/LICENSE new file mode 100644 index 0000000..127df6a --- /dev/null +++ b/sluggenerator-1.0.0/package/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 Ahmad M0az + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/sluggenerator-1.0.0/package/README.md b/sluggenerator-1.0.0/package/README.md new file mode 100644 index 0000000..8e2d83a Binary files /dev/null and b/sluggenerator-1.0.0/package/README.md differ diff --git a/sluggenerator-1.0.0/package/package.json b/sluggenerator-1.0.0/package/package.json new file mode 100644 index 0000000..f07e5d7 --- /dev/null +++ b/sluggenerator-1.0.0/package/package.json @@ -0,0 +1,45 @@ +{ + "name": "sluggenerator", + "version": "1.0.0", + "description": "a simple library for modern consumer to generate clean slugs.", + "exports": { + ".": { + "default": "./dist/index.js", + "types": "./dist/index.d.ts" + } + }, + "files": [ + "./dist" + ], + "scripts": { + "test": "vitest", + "test:run": "vitest run", + "clean": "rimraf ./dist", + "lint": "eslint .", + "build": "npm run clean && tsc -p ./tsconfig.production.json && tsc-alias -p ./tsconfig.production.json" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/M0aZzZ/slugGenerator.git" + }, + "keywords": [], + "author": "", + "license": "ISC", + "bugs": { + "url": "https://github.com/M0aZzZ/slugGenerator/issues" + }, + "homepage": "https://github.com/M0aZzZ/slugGenerator#readme", + "devDependencies": { + "@eslint/js": "^10.0.1", + "@typescript-eslint/eslint-plugin": "^8.56.1", + "@typescript-eslint/parser": "^8.56.1", + "eslint": "^10.0.3", + "globals": "^17.4.0", + "rimraf": "^6.1.3", + "tsc-alias": "^1.8.16", + "typescript": "^5.9.3", + "typescript-eslint": "^8.56.1", + "vitest": "^4.0.18" + }, + "main": "./dist/index.js" +} \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 0263eaa..7478ff6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,11 +2,11 @@ // Visit https://aka.ms/tsconfig to read more about this file "compilerOptions": { // File Layout - // "rootDir": "./src", + "rootDir": "./src", "outDir": "./dist", // Environment Settings // See also https://aka.ms/tsconfig/module - "module": "NodeNext", + "module": "nodenext", "target": "es2020", "types": [], // For nodejs: @@ -30,7 +30,7 @@ // Recommended Options "strict": true, "jsx": "react-jsx", - "verbatimModuleSyntax": true, + "verbatimModuleSyntax": false, "isolatedModules": true, "noUncheckedSideEffectImports": true, "moduleDetection": "force",