Skip to content

Commit

Permalink
feat: update pacakge version name
Browse files Browse the repository at this point in the history
  • Loading branch information
khoilen committed Jan 7, 2025
1 parent e9a2fec commit a748d35
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
6 changes: 3 additions & 3 deletions apps/nt-stylesheet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ You can install **nt-stylesheet** via npm or pnpm.
### Using npm

```sh
npx @nashtech/nt-stylesheet
npx @nashtech/stylesheet
```

### Usage
Expand All @@ -31,7 +31,7 @@ Add the following line to your HTML file to include the `nt-stylesheet` theme:
```html
<link
rel="stylesheet"
href="node_modules/@nashtech/nt-stylesheet/dist/nt-stylesheet.css"
href="node_modules/@nashtech/stylesheet/dist/nt-stylesheet.css"
/>
```

Expand All @@ -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}'],
Expand Down
7 changes: 3 additions & 4 deletions apps/nt-stylesheet/bin/init-tailwind.js
Original file line number Diff line number Diff line change
@@ -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) => {
Expand All @@ -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: {
Expand Down Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions apps/nt-stylesheet/package.json
Original file line number Diff line number Diff line change
@@ -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": "[email protected]",
"scripts": {
Expand All @@ -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"
Expand Down

0 comments on commit a748d35

Please sign in to comment.