Skip to content

Commit

Permalink
Merge pull request #32 from Nosto/fix/releaseConfigFixes
Browse files Browse the repository at this point in the history
fix: release config
  • Loading branch information
maijalintunokka authored Nov 4, 2024
2 parents 7c26ac6 + c3a24fd commit 63fc93d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm init --scope=nosto -y
- run: npm install
- run: npm run build
- uses: JS-DevTools/npm-publish@v1
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ For more information about JS API, see [Our documentation](https://docs.nosto.co
To install the package, use your preferred package manager:

```bash
yarn add nosto-js
yarn add @nosto/nosto-js
# or
npm install nosto-js --save
npm install @nosto/nosto-js --save
```

## Nosto stub
Expand Down
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
{
"name": "@nosto/nosto-js",
"description": "NostoJS is a wrapper for the Nosto client script, providing an easy way to interact with the Nosto service from your JavaScript or TypeScript applications.",
"version": "1.0.0",
"license": "ISC",
"type": "module",
"files": [
"dist"
],
"main": "./dist/index.cjs.js",
"module": "./dist/index.es.js",
"types": "./dist/index.d.ts",
"directories": {
"doc": "docs",
"test": "test"
},
"keywords": [],
"author": "Nosto",
"exports": {
".": {
"import": "./dist/index.es.js",
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { defineConfig } from "vitest/config"
export default defineConfig({
build: {
lib: {
name: "nosto-js",
name: "@nosto/nosto-js",
entry: [resolve(__dirname, "src/index.ts"), resolve(__dirname, "src/testing/testing.ts")],
formats: ["es", "cjs"],
fileName: (format, name) => `${name}.${format}.js`
Expand Down

0 comments on commit 63fc93d

Please sign in to comment.