test: test publiash npm
This commit is contained in:
parent
f4a50031f6
commit
5d7ddb9421
1
test-npm-publish/dist/index.d.ts
vendored
Normal file
1
test-npm-publish/dist/index.d.ts
vendored
Normal file
@ -0,0 +1 @@
|
||||
export declare const a = 1;
|
4
test-npm-publish/dist/index.js
vendored
Normal file
4
test-npm-publish/dist/index.js
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.a = void 0;
|
||||
exports.a = 1;
|
26
test-npm-publish/package.json
Normal file
26
test-npm-publish/package.json
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"name": "@abear/test-publish",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"private": false,
|
||||
"main": "dist/index.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"prepublish": "npm run build",
|
||||
"spublish": "npm publish --registry https://registry.npmjs.org/"
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
],
|
||||
"keywords": [],
|
||||
"author": "abearxiong",
|
||||
"license": "ISC",
|
||||
"packageManager": "pnpm@7.21.0+sha256.55c2246a81d433295fb0c701a349b3254de95348976f02e5acef031fc1045111",
|
||||
"dependencies": {
|
||||
"lodash": "^4.17.21"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
}
|
||||
}
|
1
test-npm-publish/readme.md
Normal file
1
test-npm-publish/readme.md
Normal file
@ -0,0 +1 @@
|
||||
test publish to registry.npmjs.org
|
1
test-npm-publish/src/index.ts
Normal file
1
test-npm-publish/src/index.ts
Normal file
@ -0,0 +1 @@
|
||||
export const a = 1;
|
41
test-npm-publish/tsconfig.json
Normal file
41
test-npm-publish/tsconfig.json
Normal file
@ -0,0 +1,41 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "NodeNext",
|
||||
"target": "esnext",
|
||||
"noImplicitAny": false,
|
||||
"outDir": "./dist",
|
||||
"sourceMap": false,
|
||||
"allowJs": true,
|
||||
"newLine": "LF",
|
||||
"baseUrl": "./",
|
||||
"typeRoots": [
|
||||
"node_modules/@types",
|
||||
"src/@types"
|
||||
],
|
||||
"declaration": true,
|
||||
"noEmit": false,
|
||||
// "allowImportingTsExtensions": true,
|
||||
"moduleResolution": "NodeNext",
|
||||
"experimentalDecorators": true,
|
||||
"emitDecoratorMetadata": true,
|
||||
"esModuleInterop": true,
|
||||
"paths": {
|
||||
"@/*": [
|
||||
"src/*"
|
||||
],
|
||||
"*": [
|
||||
"types/*"
|
||||
]
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"typings.d.ts",
|
||||
"src/**/*.ts"
|
||||
],
|
||||
"exclude": [
|
||||
"node_modules",
|
||||
"dist",
|
||||
"src/**/*.test.ts",
|
||||
"webpack.config.cjs",
|
||||
],
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user