From a748d35dd9df860e1db7d76f5515866fc5c67a01 Mon Sep 17 00:00:00 2001 From: khoilen Date: Tue, 7 Jan 2025 14:33:33 +0700 Subject: [PATCH] feat: update pacakge version name --- apps/nt-stylesheet/README.md | 6 +++--- apps/nt-stylesheet/bin/init-tailwind.js | 7 +++---- apps/nt-stylesheet/package.json | 6 +++--- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/apps/nt-stylesheet/README.md b/apps/nt-stylesheet/README.md index ba7f2e0..bf702f9 100644 --- a/apps/nt-stylesheet/README.md +++ b/apps/nt-stylesheet/README.md @@ -19,7 +19,7 @@ You can install **nt-stylesheet** via npm or pnpm. ### Using npm ```sh -npx @nashtech/nt-stylesheet +npx @nashtech/stylesheet ``` ### Usage @@ -31,7 +31,7 @@ Add the following line to your HTML file to include the `nt-stylesheet` theme: ```html ``` @@ -41,7 +41,7 @@ Create or update your tailwind.config.js file to include the nt-stylesheet theme ```js /** @type {import('tailwindcss').Config} */ -const ntTheme = require('@nashtech/nt-stylesheet/dist/nt-stylesheet.cjs') +const ntTheme = require('@nashtech/stylesheet/dist/nt-stylesheet.cjs') module.exports = { content: ['*.{html,js}'], diff --git a/apps/nt-stylesheet/bin/init-tailwind.js b/apps/nt-stylesheet/bin/init-tailwind.js index 3170978..79b06d3 100644 --- a/apps/nt-stylesheet/bin/init-tailwind.js +++ b/apps/nt-stylesheet/bin/init-tailwind.js @@ -1,7 +1,6 @@ #!/usr/bin/env node - -import fs from 'fs' import { exec } from 'child_process' +import fs from 'fs' import readline from 'readline' export const installPackage = (packageName) => { @@ -22,7 +21,7 @@ export const installPackage = (packageName) => { export const createTailwindConfig = () => { const tailwindConfigContent = `/** @type {import('tailwindcss').Config} */ -const ntTheme = require('@nashtech/nt-stylesheet/dist/nt-stylesheet.cjs'); +const ntTheme = require('@nashtech/stylesheet/dist/nt-stylesheet.cjs'); module.exports = { content: ['*.{html,js}'], theme: { @@ -78,7 +77,7 @@ export const createPostCSSConfig = () => { export const initialize = async () => { try { - await installPackage('@nashtech/nt-stylesheet') + await installPackage('@nashtech/stylesheet') const rl = readline.createInterface({ input: process.stdin, output: process.stdout, diff --git a/apps/nt-stylesheet/package.json b/apps/nt-stylesheet/package.json index c1ca01a..5c9126c 100644 --- a/apps/nt-stylesheet/package.json +++ b/apps/nt-stylesheet/package.json @@ -1,6 +1,6 @@ { - "name": "@nashtech/nt-stylesheet", - "version": "1.0.2", + "name": "@nashtech/stylesheet", + "version": "1.0.0", "description": "Style sheet for the NT Design System", "packageManager": "pnpm@9.15.3", "scripts": { @@ -9,7 +9,7 @@ "semantic-release": "semantic-release" }, "bin": { - "@nashtech/nt-stylesheet": "bin/init-tailwind.js" + "@nashtech/stylesheet": "bin/init-tailwind.js" }, "engines": { "node": ">=20"