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

dual package publishing using nanobundle #132

Open
wants to merge 1 commit into
base: next
Choose a base branch
from
Open
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
3 changes: 1 addition & 2 deletions @nact/core/.gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
*.js
!rollup.config.js
!jest.config.js
dist/
*.d.ts
*.map
index.mjs
index.mjs
20 changes: 14 additions & 6 deletions @nact/core/package.json
Original file line number Diff line number Diff line change
@@ -2,13 +2,22 @@
"name": "@nact/core",
"version": "0.5.0",
"description": "",
"module": "index.js",
"main": "index.js",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js",
"import": "./dist/index.mjs"
},
"./package.json": "./package.json"
},
"sideEffects": false,
"scripts": {
"test": "npm run lint-fix && jest",
"test-watch": "jest --watch",
"build": "rollup -c rollup.config.js",
"build": "nanobundle build --platform node",
"interactive-cover": "nyc --reporter=html mocha ./test/*.js && open ./coverage/index.html",
"lint": "semistandard",
"coverage": "nyc report --reporter=text-lcov | coveralls",
@@ -21,17 +30,16 @@
"author": "",
"license": "ISC",
"devDependencies": {
"@rollup/plugin-typescript": "^8.3.1",
"@types/chai": "^4.3.0",
"@types/chai-as-promised": "^7.1.5",
"@types/jest": "^26.0.20",
"chai": "^4.3.6",
"chai-as-promised": "^7.1.1",
"jest": "^26.6.3",
"rollup": "^2.70.1",
"nanobundle": "^1.0.0",
"semistandard": "^16.0.0",
"ts-jest": "^26.5.2",
"tslib": "^2.3.1",
"typescript": "^4.1.5"
}
}
}
13 changes: 0 additions & 13 deletions @nact/core/rollup.config.js

This file was deleted.

7 changes: 3 additions & 4 deletions @nact/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -27,9 +27,8 @@
"resolveJsonModule": true,
// Ensure that Babel can safely transpile files in the TypeScript project
"isolatedModules": true,
"rootDir": ".",
"outDir": "dist",
"declaration": true,
"declarationDir": "."
// Ensure that .d.ts files are created by tsc, but not .js files
"declaration": true
}
}
}
1 change: 1 addition & 0 deletions @nact/persistence/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist/
Loading