Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update package version name #36

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading